Skip to content

Assertion Ptr must be a pointer to Val type!"' failed. #20234

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
tupshin opened this issue Dec 26, 2014 · 2 comments
Closed

Assertion Ptr must be a pointer to Val type!"' failed. #20234

tupshin opened this issue Dec 26, 2014 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@tupshin
Copy link

tupshin commented Dec 26, 2014

The following standalone struct, when compiled, generates the assertion below.

#[deriving(PartialEq)]
struct Foo {
  bar:str
}
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/Instructions.cpp:1086: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.
@huonw huonw added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Dec 26, 2014
@japaric
Copy link
Member

japaric commented Dec 26, 2014

Duplicate of #18805

@tupshin
Copy link
Author

tupshin commented Dec 26, 2014

yup. dupe. closing

@tupshin tupshin closed this as completed Dec 26, 2014
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