From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2612 invoked by alias); 15 Dec 2006 12:22:18 -0000 Received: (qmail 1919 invoked by uid 48); 15 Dec 2006 12:21:48 -0000 Date: Fri, 15 Dec 2006 12:22:00 -0000 Subject: [Bug c/30219] New: Inconsistent reporting of duplicate typedef X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ross dot alexander at uk dot neceur dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-12/txt/msg01349.txt.bz2 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=30219