First Last Prev Next    No search results available
Details
: [llvm-gcc] Crash casting function to void
Bug#: 396
: tools
: llvm-gcc
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: normal
: 1.3

:
: compile-fail
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Markus F.X.J. Oberhumer <markus@oberhumer.com>
Assigned To: Unassigned LLVM Bugs <unassignedbugs@nondot.org>

Attachments
Preprocessed source code to trigger the internal error. (65.25 KB, text/plain)
2004-07-02 21:07, Markus F.X.J. Oberhumer
Details
Much reduced testcase. (126 bytes, text/plain)
2004-07-02 21:38, Markus F.X.J. Oberhumer
Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-07-02 21:06
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.
------- Comment #1 From Markus F.X.J. Oberhumer 2004-07-02 21:07:55 -------
Created an attachment (id=146) [details]
Preprocessed source code to trigger the internal error.
------- Comment #2 From Markus F.X.J. Oberhumer 2004-07-02 21:38:35 -------
Created an attachment (id=147) [details]
Much reduced testcase.
------- Comment #3 From Chris Lattner 2004-07-02 21:58:11 -------
Cool, I'll definitely fix this, but unfortunately I won't have time tonight.

Thanks for reporting it.

-chris
------- Comment #4 From Chris Lattner 2004-07-06 21:23:27 -------
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

First Last Prev Next    No search results available