-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 - Option Refcount causes an LLVM assertion to fail. #21533
Comments
Reduced test case: struct Outer(*mut ProblemType);
struct ProblemType ([Outer; 8]);
fn breaks_compiler(_: Outer) {} |
This depends on the array in |
Triage: no longer ICEs. The original case: use std::rc::Rc;
struct ProblemType {
children: [Option<Rc<ProblemType>>; 8],
}
impl ProblemType {
fn breaks_compiler() -> Option<Rc<ProblemType>> {
None
}
}
fn main() {
// Add code here
} as well as the reduced test case now compile without error. |
On my machine both test cases fail with the ICE mentioned in the first comment.
|
Confirming still ICEs |
This is strange: it compiles fine in stable and beta (also with rustc 1.2.0), but fails in nightly. |
LLVM assertions are disabled in stable/beta. |
duplicate of #19001 |
The following code:
Causes LLVM to fail an assertion, claiming:
The text was updated successfully, but these errors were encountered: