LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1084 - Crash building mozilla: mishandling bogus trees for static ptrs to methods
Summary: Crash building mozilla: mishandling bogus trees for static ptrs to methods
Status: RESOLVED FIXED
Alias: None
Product: tools
Classification: Unclassified
Component: llvm-g++ (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2007-01-06 15:48 PST by Anton Korobeynikov
Modified: 2018-11-07 00:17 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Reduced source (1.40 KB, text/plain)
2007-01-06 15:49 PST, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Korobeynikov 2007-01-06 15:48:49 PST
Attached source (from mozilla, delta-reduced) causes the folowing assertion:

$ /home/asl/proj/llvm/install/bin/llvm-g++ test.ii
cc1plus: /home/asl/proj/llvm/src/lib/VMCore/Instructions.cpp:1685: static
llvm::Instruction::CastOps llvm::CastInst::getCastOpcode(const llvm::Value*,
bool, const llvm::Type*, bool): Assertion `!"Casting to type that is not
first-class"' failed.
test.ii:73: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.
Comment 1 Anton Korobeynikov 2007-01-06 15:49:19 PST
Created attachment 542 [details]
Reduced source
Comment 2 Chris Lattner 2007-01-06 18:05:24 PST
Testcase here: test/Regression/C++Frontend/2007-01-06-PtrMethodInit.cpp

Patch sent to llvm-commits.

-Chris