-
Notifications
You must be signed in to change notification settings - Fork 82
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
Replace undefined with more descriptive error #262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Would it be possible to add a reproducer?
ef34612
to
5aba694
Compare
@andreasabel How's that? |
Thanks! Somehow the testsuite fails:
|
Hopefully adding the missing |
https://github.com/haskell/alex/actions/runs/12548981514/job/34989207762?pr=262#step:9:111
|
Released as 3.5.2.0. |
## Changes in 3.5.2.0 * Use `byteSwap16#` and `byteSwap32#` on big-endian architectures instead of handrolling the implementation ([PR #260](haskell/alex#260)). * More descriptive error in `alexScan`; inline `alexScanUser` ([PR #262](haskell/alex#262)). * Tested with GHC 8.0 - 9.12.1.
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
If this error is thrown, it's difficult to debug: https://gitlab.haskell.org/ghc/ghc/-/issues/25609