This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/20245] New: [4.1 regression] ICE on invalid function declaration


Mainline now segfaults when compiling the following invalid code snipptet:

===============
void foo() x;
===============

bug.c: In function 'foo':
bug.c:1: error: expected declaration specifiers before 'x'
bug.c:1: error: expected '{' at end of input
bug.c:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

Joseph, this is probably fallout from the new C parser.
Could you please have a look?

-- 
           Summary: [4.1 regression] ICE on invalid function declaration
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,jsm28 at gcc dot gnu dot
                    org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]