Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move "Work-around for GHC 9.4 bug in ExpWithClashCF" #2569

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

leonschoorl
Copy link
Member

@leonschoorl leonschoorl commented Aug 25, 2023

Moves the workaround added in c1ef28f from Exp.hs to ExpWithGhcCF.hs

When I updated the CI image from 9.4.3 to 9.4.6 the ExpWithGhcCF test started to fail on the 9.4.6 nightly test with

    Other error:
    panic! (the 'impossible' happened)
      GHC version 9.4.6:
    	refineFromInScope

I've done some testing and I've found:

Using ghc <= 9.4.4:

The -fno-specialise workaround isn't need at all

Using ghc 9.4.5 and 9.4.6:

It needs the -fno-specialise workaround in ExpWithGhcCF, not in Exp.
Otherwise the ExpWithGhcCF test fails,
not the ExpWithClashCF like mentioned in the original commit msg.

Still TODO:

  • Write a changelog entry (see changelog/README.md)
  • Check copyright notices are up to date in edited files

Copy link
Member

@christiaanb christiaanb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Moves the workaround added in c1ef28f
from Exp.hs to ExpWithGhcCF.hs

When I updated the CI image from 9.4.3 to 9.4.6 the ExpWithGhcCF test
started to fail on the 9.4.6 nightly test with
    Other error:
    panic! (the 'impossible' happened)
      GHC version 9.4.6:
    	refineFromInScope

I've done some testing and I've found:
Using ghc <= 9.4.4:
 The -fno-specialise workaround isn't need at all

Using ghc 9.4.5 and 9.4.6:
 It needs the -fno-specialise workaround in ExpWithGhcCF, not in Exp.
 Otherwise the ExpWithGhcCF test fails,
 not the ExpWithClashCF like mentioned in the original commit msg.
@leonschoorl leonschoorl enabled auto-merge (squash) August 28, 2023 11:08
@leonschoorl
Copy link
Member Author

FYI ghc-9.4.7 still hits the same bug without the workaround

@leonschoorl leonschoorl merged commit 9b9cf4d into master Aug 29, 2023
12 checks passed
@leonschoorl leonschoorl deleted the fix-ExpWith-9.4-workaround branch August 29, 2023 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants