This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30218] New: Inconsistent reporting of duplicate typedef
- From: "ross dot alexander at uk dot neceur dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2006 12:18:39 -0000
- Subject: [Bug c/30218] New: Inconsistent reporting of duplicate typedef
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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