Fix renamer panic
This patch fixes Trac #12216 and #12127. The 'combine' function in 'imp_occ_env' in RnNames.filterImports checked for an empty field-selector list, which was (a) unnecessary and (b) wrong. I've elaborated the comments. This does NOT fix #11959 which is related but not the same (it concerns bundling of pattern synonyms).
Showing
- compiler/rename/RnNames.hs 15 additions, 7 deletionscompiler/rename/RnNames.hs
- testsuite/tests/rename/should_compile/T12127.hs 3 additions, 0 deletionstestsuite/tests/rename/should_compile/T12127.hs
- testsuite/tests/rename/should_compile/T12127a.hs 9 additions, 0 deletionstestsuite/tests/rename/should_compile/T12127a.hs
- testsuite/tests/rename/should_compile/all.T 4 additions, 0 deletionstestsuite/tests/rename/should_compile/all.T
Loading
Please register or sign in to comment