Bugzilla – Bug 396
[llvm-gcc] Crash casting function to void
Last modified: 2004-07-06 21:23:27
You need to log in before you can comment on or make changes to this bug.
llvm-gcc -c llvm_bug.cpp cc1plus: ../../gcc/llvm-expand.c:153: cast_if_type_not_equal: Assertion `((Ty)->ID == PointerTyID || ((Ty->ID < FunctionTyID) && (Ty)->ID != VoidTyID)) && "Cannot cast to non-first-class type!"' failed. llvm_bug.cpp: In function `void CCDB_6d15f99c::set_output_overrun(SSignature*, size_t)': llvm_bug.cpp:1613: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://llvm.cs.uiuc.edu> for instructions.
Created an attachment (id=146) [details] Preprocessed source code to trigger the internal error.
Created an attachment (id=147) [details] Much reduced testcase.
Cool, I'll definitely fix this, but unfortunately I won't have time tonight. Thanks for reporting it. -chris
Fixed. Your reduced testcase is now here: test/Regression/CFrontend/2004-07-06-FunctionCast.c ...and the patch is here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040705/015775.html Thanks for the bugreport! -Chris