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 (cherry picked from commit df363a64)
Showing
- compiler/main/HeaderInfo.hs 16 additions, 6 deletionscompiler/main/HeaderInfo.hs
- testsuite/tests/parser/should_fail/T15053.stderr 5 additions, 0 deletionstestsuite/tests/parser/should_fail/T15053.stderr
- testsuite/tests/parser/should_fail/all.T 1 addition, 1 deletiontestsuite/tests/parser/should_fail/all.T
Please register or sign in to comment