This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31780] New: [4.3 regression] ICE with incompatible types for ?:
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2007 23:50:45 -0000
- Subject: [Bug c++/31780] New: [4.3 regression] ICE with incompatible types for ?:
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline:
===========================================
bool foo();
void bar()
{
__builtin_expect(foo(), 1) ? 0i : 0;
}
===========================================
bug.cc: In function 'void bar()':
bug.cc:5: error: could not convert '0' to 'int __complex__'
bug.cc:5: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in tree_ssa_useless_type_conversion_1, at
tree-ssa.c:900
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE with incompatible types for ?:
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31780