-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Attempting to match a string constant crashes the compiler #8315
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
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
A gdb backtrace would be useful here. |
Here's a backtrace:
Some other observations: using a string literal (instead of the static constant) works. Using a defined static constant of an integer type works as a pattern. The crash only happens when I attempt to use a string constant as a pattern for matching. |
visiting for triage. Still reproduces. |
bors
added a commit
that referenced
this issue
Jun 10, 2014
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jan 27, 2022
`trait_duplication_in_bounds` checks path segments for trait items closes rust-lang#8306 changelog: [`trait_duplication_in_bounds`] Fix FP when path segments exists for trait items
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attempting to compile this code:
will make the compiler abort after outputting this:
This was on a nightly build of rust pulled from the Ubuntu PPA. I tried it with rust 0.7 (also from the ubuntu PPA) and got the same problem.
The text was updated successfully, but these errors were encountered: