diff options
author | Alan Zimmerman <alan.zimm@gmail.com> | 2021-12-21 13:00:28 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-22 00:13:38 -0500 |
commit | 09b6cb45505c2c32ddaffcdb930fb3f7873b2cfc (patch) | |
tree | e5ece936a8853bef1c8b9551b4eb8f2a4af0bac4 /testsuite/tests/parser/should_compile/all.T | |
parent | d7cc8f1915c9617b6d4256fd1e483c24b4b1e851 (diff) | |
download | haskell-09b6cb45505c2c32ddaffcdb930fb3f7873b2cfc.tar.gz |
Fix panic trying to -ddump-parsed-ast for implicit fixity
A declaration such as
infixr ++++
is supplied with an implicit fixity of 9 in the parser, but uses
an invalid SrcSpan to capture this. Use of this span triggers a panic.
Fix the problem by not recording an exact print annotation for the
non-existent fixity source.
Closes #20846
Diffstat (limited to 'testsuite/tests/parser/should_compile/all.T')
-rw-r--r-- | testsuite/tests/parser/should_compile/all.T | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/parser/should_compile/all.T b/testsuite/tests/parser/should_compile/all.T index 5f81a651c3..8820d7545a 100644 --- a/testsuite/tests/parser/should_compile/all.T +++ b/testsuite/tests/parser/should_compile/all.T @@ -180,4 +180,5 @@ test('T19521', normal, compile, ['']) test('T20186', normal, compile, ['']) test('T20452', normal, compile, ['']) -test('DumpSemis', normal, compile, ['-dsuppress-uniques -ddump-parsed-ast']) +test('DumpSemis', normal, compile, ['-dsuppress-uniques -ddump-parsed-ast']) +test('T20846', normal, compile, ['-dsuppress-uniques -ddump-parsed-ast'])
\ No newline at end of file |