Compiler panic on invalid syntax (unterminated pragma)
authorroland <rsx@bluewin.ch>
Tue, 4 Sep 2018 12:09:20 +0000 (14:09 +0200)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Tue, 4 Sep 2018 12:09:20 +0000 (14:09 +0200)
commitdf363a646b66f4dd13d63ec70f18e427cabc8878
tree14fa4093f8e7620f5140bd4bc1d5346bfc45021d
parentfa3143c76ac77ee96fd89559cacc089205abaa20
Compiler panic on invalid syntax (unterminated pragma)

Summary: After a parse error in OPTIONS_GHC issue an error message instead of a compiler panic.

Test Plan: make test TEST=T15053

Reviewers: Phyx, thomie, bgamari, monoidal, osa1

Reviewed By: Phyx, monoidal, osa1

Subscribers: tdammers, osa1, rwbarton, carter

GHC Trac Issues: #15053

Differential Revision: https://phabricator.haskell.org/D5093
compiler/main/HeaderInfo.hs
testsuite/tests/parser/should_fail/T15053.stderr [new file with mode: 0644]
testsuite/tests/parser/should_fail/all.T