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/30218] New: Inconsistent reporting of duplicate typedef


I have an include (nvidia GL/glext.h) which incorrectly defines a typedef
twice.  However gcc doesn't not always report this is as a failure.

mig27 12:16:21$ cat test.c
#include "GL/gl.h"

mig27 12:15:23$ gcc -E  test.c > a.i
mig27 12:15:30$ gcc -c a.i
mig27 12:15:34$ echo $?
0
mig27 12:15:36$ gcc -E -P test.c > a.i
mig27 12:15:43$ gcc -c a.i
a.i:1505: error: redefinition of typedef â??PFNGLGETUNIFORMUIVEXTPROCâ??
a.i:1494: error: previous declaration of â??PFNGLGETUNIFORMUIVEXTPROCâ?? was
here


-- 
           Summary: Inconsistent reporting of duplicate typedef
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ross dot alexander at uk dot neceur dot com
 GCC build triplet: i386-unknown-linux
  GCC host triplet: i386-unknown-linux
GCC target triplet: i386-unknown-linux


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


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