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/26759] New: [4.0/4.1 regression] gcc 4 does not notice C syntax error


[forwarded from http://bugs.debian.org/354700]

$ cat >t.c
int foo(int x;) { }

$ gcc-3.4 -c t.c
t.c:1: error: parameter "x" has just a forward declaration
$ gcc-4.0 -c t.c
$ echo $?
0
$ gcc-4.1 -c t.c
$ echo $?
0


-- 
           Summary: [4.0/4.1 regression] gcc 4 does not notice C syntax
                    error
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


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