Bug 30218 - Inconsistent reporting of duplicate typedef
Summary: Inconsistent reporting of duplicate typedef
Status: RESOLVED DUPLICATE of bug 30219
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.1.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-15 12:18 UTC by ross.alexander
Modified: 2006-12-15 15:16 UTC (History)
1 user (show)

See Also:
Host: i386-unknown-linux
Target: i386-unknown-linux
Build: i386-unknown-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ross.alexander 2006-12-15 12:18:39 UTC
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
Comment 1 ross.alexander 2006-12-15 12:21:31 UTC
Created attachment 12809
Comment 2 Andrew Pinski 2006-12-15 15:16:17 UTC

*** This bug has been marked as a duplicate of 30219 ***