-
Notifications
You must be signed in to change notification settings - Fork 428
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
Dead module with an enum causes internal compiler error #6536
Comments
For background: @LouisJenkinsCS hit this issue with |
This is hitting some logic in deadCodeElimination.cpp that seems to be saying "if there was only one thing in this module, I expected it to be an init function!" I'm wondering if @ronawho or @noakesmichael could take a look at this -- Elliot was the original author, and Mike did an edit in the vicinity recently related to determining the main module (I didn't go back to see if the segfault existed prior to that change). @lydia-duncan has also been here to add the internal error that we're hitting and avoid a segfault, so may have additional insight. |
Dead module with enum -- future for issue #6536 [contributed by @e-kayrakli] Adds a future for the issue #6536. Added future is reported as future with standard linux64 setup.
@noakesmichael mind taking an initial look? (I'm out next week, and so it'll be a while until I get a chance to dig into this) |
I think @noakesmichael is the right person to look at this. I suspect his changes to scopeResolve's module handling caused the bug that was fixed last year to resurface |
Err - either extended the bug, or copied the source of the bug over and it is only just now becoming apparent that it also applies to enums |
Fixed by #6570 |
Summary of Problem
As in the title: dead module with an enum causes internal compiler error
Steps to Reproduce
Source Code:
deadModule.chpl:
enum Foo {BAR};
mainModule.chpl:
Compile command:
Execution command:
Doesn't compile.
Associated Future Test(s):
PR: #6537
Will add the future
test/users/engin/deadModuleWithEnum/deadModuleWithEnum.chpl
Configuration Information
chpl --version
:$CHPL_HOME/util/printchplenv --anonymize
:gcc --version
orclang --version
:The text was updated successfully, but these errors were encountered: