-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Compiler crash: type parameter D/#3
(D/#3/3) out of range when substituting (project with feature generic_const_exprs)
#117460
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
panzi
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Oct 31, 2023
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Oct 31, 2023
The file it said to attach: |
saethlin
removed
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Oct 31, 2023
Made a minimal example for this compiler crash in this repository: https://github.com/panzi/rust-compiler-crash |
panzi
changed the title
Compiler crash in project with const generics and default generic parameters
Compiler crash: type parameter Nov 4, 2023
D/#3
(D/#3/3) out of range when substituting (project with feature generic_const_exprs)
Reduced (from #![feature(generic_const_exprs)]
struct Matrix<D = [(); 2 + 2]> {
d: D,
}
impl Matrix {} |
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Aug 31, 2024
add crashtests for several old unfixed ICEs Adds several new crashtests for some older ICEs that did not yet have any. Tests were added for rust-lang#128097, rust-lang#119095, rust-lang#117460 and rust-lang#126443.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Sep 1, 2024
add crashtests for several old unfixed ICEs Adds several new crashtests for some older ICEs that did not yet have any. Tests were added for rust-lang#128097, rust-lang#119095, rust-lang#117460 and rust-lang#126443.
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Sep 1, 2024
Rollup merge of rust-lang#129780 - cyrgani:master, r=compiler-errors add crashtests for several old unfixed ICEs Adds several new crashtests for some older ICEs that did not yet have any. Tests were added for rust-lang#128097, rust-lang#119095, rust-lang#117460 and rust-lang#126443.
matthiaskrgr
added
the
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
label
Sep 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When I add the default generic parameter then the error about that part goes away, but the crash remains.
Code
This is a very broken intermediate state where I try to replace a field
data: Box<[T; X * Y]>
with a generic field that hasAsRef<[T; X * Y]>
.panzi/rust-matrix@64fecf7
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: