[Bug c++/35987] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid if-condition
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Apr 20 14:58:00 GMT 2008
The following invalid code snippet triggers an ICE since GCC 3.0:
================================
void foo(char* p)
{
if (++p = true);
}
================================
bug.cc: In function 'void foo(char*)':
bug.cc:3: error: cannot convert 'bool' to 'char*' in assignment
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in fold_comparison, at fold-const.c:8730
Please submit a full bug report, [etc.]
--
Summary: [4.1/4.2/4.3/4.4 regression] ICE with invalid if-
condition
Product: gcc
Version: 4.4.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=35987
More information about the Gcc-bugs
mailing list