Skip to content

ICE: After undeclared module error #44946

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

Closed
jgouly opened this issue Sep 30, 2017 · 2 comments
Closed

ICE: After undeclared module error #44946

jgouly opened this issue Sep 30, 2017 · 2 comments
Assignees
Labels
C-bug Category: This is a bug.

Comments

@jgouly
Copy link

jgouly commented Sep 30, 2017

This short code produces an ICE after correctly reporting an error:

const A: usize = C::D::<u32>();

No special options needed:

$ rustc 44946.rs

Rust version:

$ rustc --version --verbose
rustc 1.22.0-nightly (1ed7d41d8 2017-09-24)  
binary: rustc 
commit-hash: 1ed7d41d8849d930f0622eaf54049f66fff0ca2a
commit-date: 2017-09-24  
host: x86_64-unknown-linux-gnu
release: 1.22.0-nightly
LLVM version: 4.0
@petrochenkov
Copy link
Contributor

petrochenkov commented Sep 30, 2017

Very similar to #44858, fixed in #44945
(I'll add a test.)

@jgouly
Copy link
Author

jgouly commented Sep 30, 2017

Thanks @petrochenkov!

@TimNN TimNN added the C-bug Category: This is a bug. label Oct 1, 2017
@petrochenkov petrochenkov self-assigned this Oct 1, 2017
bors added a commit that referenced this issue Oct 1, 2017
Do not require semantic types for all syntactic types when there are errors

Fixes #44814
Fixes #44858
Fixes #44946
r? @nikomatsakis
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.
Projects
None yet
Development

No branches or pull requests

3 participants