The C++ frontend ICEs on the following invalid code snippet since GCC 3.0: ============================== void foo(void i); void bar() { foo(0); } ==============================
bug.cc:1: error: 'i' has incomplete type bug.cc:1: error: invalid use of 'void' bug.cc: In function 'void bar()': bug.cc:2: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in convert_arguments, at cp/typeck.c:2749 Please submit a full bug report, [etc.] -- Summary: [4.0/4.1/4.2 regression] ICE with invalid function argument Product: gcc Version: 4.2.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=27422