Skip to content
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 using &Path bind #24969

Closed
blaenk opened this issue Apr 30, 2015 · 5 comments
Closed

ICE when using &Path bind #24969

blaenk opened this issue Apr 30, 2015 · 5 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@blaenk
Copy link
Contributor

blaenk commented Apr 30, 2015

I'm not sure if this is a regression of #23133 or what, but the following has produced an ICE ever since I can remember. I commented on the above issue that it had been fixed at the time I made such a comment, so I guess this is a regression of some sort.

use std::path::{Path, PathBuf};
use std::collections::HashSet;

fn main() {
  let hm: HashSet<PathBuf> = HashSet::new();
  let p = PathBuf::new();
  let rp: &Path = &p;
  assert!(hm.contains(rp));
}

playpen

crashes on beta and nightly

λ ~/code/rust/scratch/ice
» RUST_BACKTRACE=1 rustc ice.rs
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/include/llvm/
IR/Instructions.h:782: llvm::Type* llvm::checkGEPType(llvm::Type*): Assertion `Ty && "Invalid GetElementPtrInst indices for type!"' failed.                                                             zsh: abort (core dumped)  RUST_BACKTRACE=1 rustc ice.rs
@blaenk
Copy link
Contributor Author

blaenk commented Apr 30, 2015

cc @aturon perhaps (if not, disregard)

@bstrie bstrie added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Apr 30, 2015
@luqmana
Copy link
Member

luqmana commented May 2, 2015

This seems to be a dupe of #23261.

@luqmana luqmana closed this as completed May 2, 2015
@blaenk
Copy link
Contributor Author

blaenk commented May 2, 2015

Haha yeah, and I commented on that too. Goes to show how long it's gone
unfixed that I forgot there already was an issue.

On Saturday, May 2, 2015, Luqman Aden [email protected] wrote:

This seems to be a dupe of #23261
#23261.


Reply to this email directly or view it on GitHub
#24969 (comment).

  • Jorge Israel Peña

@luqmana
Copy link
Member

luqmana commented May 2, 2015

@blaenk I think I have a fix for it. I'll try to finish it up later today.

@blaenk
Copy link
Contributor Author

blaenk commented May 2, 2015

That's awesome!

On Saturday, May 2, 2015, Luqman Aden [email protected] wrote:

@blaenk https://github.com/blaenk I think I have a fix for it. I'll try
to finish it up later today.


Reply to this email directly or view it on GitHub
#24969 (comment).

  • Jorge Israel Peña

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants