-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE when combining wrong syntax with Unicode string literal #64792
Labels
A-resolve
Area: Name resolution
A-Unicode
Area: Unicode
C-bug
Category: This is a bug.
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Centril
added
A-Unicode
Area: Unicode
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I-nominated
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Sep 26, 2019
Reduced: struct X {}
const Y: X = X("ö"); Backtrace:
|
Cannot reproduce on beta or nightly (1.39.0 both). |
triage: P-medium. Would be good to identify point where it was fixed by bisection, and maybe add a test if one doesn't already exist. Removing nomination. |
pnkfelix
added
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
P-medium
Medium priority
and removed
I-nominated
labels
Sep 26, 2019
Fixed by #63508, presumably (it bisected to a rollup). |
varkor
added a commit
to varkor/rust
that referenced
this issue
Oct 7, 2019
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Oct 11, 2019
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Oct 11, 2019
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
Centril
added a commit
to Centril/rust
that referenced
this issue
Oct 11, 2019
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-resolve
Area: Name resolution
A-Unicode
Area: Unicode
C-bug
Category: This is a bug.
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In syntactically erroneous inputs, non-ASCII string literals can cause a compiler panic.
Being a dilettante with fingers used to C++, I tried to initialize a struct without calling its
new
method, and it so happened that I was passing it a non-ASCII string. This gave me a compiler panic. Here's a small example:Meta
I am using the Manjaro (Arch Linux)
rust
package, version1:1.37.0-2
.rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: