The following code snippet crashes the C++ frontend on mainline:

==============================
int main(void,char**);
==============================

bug.cc:1: error: '<anonymous>' has incomplete type
bug.cc:1: error: invalid use of 'void'
bug.cc:1: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in check_main_parameter_types, at c-common.c:1044
Please submit a full bug report, [etc.]

Will post a patch soon.


-- 
           Summary: [4.3 regression] ICE on invalid parameter for main
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: reichelt at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30021

Reply via email to