-
Notifications
You must be signed in to change notification settings - Fork 177
Fix ICE when trying to compile enums with non-const discriminants. #3681
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
base: master
Are you sure you want to change the base?
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.
Good find LGTM
8d4d197
to
0a33f07
Compare
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.
LGTM
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.
Actually can you squash these two commits they should just be a single patch for this.
0a33f07
to
3ff5f91
Compare
gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveItem::visit): add name resolution processing for discriminant values * resolve/rust-ast-resolve-stmt.h: add name resolution processing for discriminant values gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Exclude enum_discriminant2.rs due to ICE * rust/compile/enum_discriminant2.rs: New test. * rust/compile/enum_discriminant3.rs: New test. Signed-off-by: Ryutaro Okada <[email protected]>
3ff5f91
to
6456726
Compare
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.
LGTM
some merge conflicts need fixed here |
addresses #3635
make check-rust
passes locallyclang-format
gcc/testsuite/rust/