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.
Created attachment 542 [details] Reduced source
Testcase here: test/Regression/C++Frontend/2007-01-06-PtrMethodInit.cpp Patch sent to llvm-commits. -Chris
Patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070101/042146.html