[Bug c/14963] New: Unknown types cause ICE in function declarations

ekarttun at cs dot helsinki dot fi gcc-bugzilla@gcc.gnu.org
Thu Apr 15 12:08:00 GMT 2004


The following code causes the cvs HEAD of 2004-04-11 to crash:

X Y(Z);

With gcc 3.3.3 it produces a proper error.

The output is the following:

e@rei:~/objc/gcc-work/libobjc-fixes$ gcc crash.c 
crash.c:1: error: syntax error before "Y"
crash.c:1: warning: parameter names (without types) in function declaration
crash.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
e@rei:~/objc/gcc-work/libobjc-fixes$

-- 
           Summary: Unknown types cause ICE in function declarations
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ekarttun at cs dot helsinki dot fi
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list