This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB 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]

Re: symtab/213: Type confusion with excluded include files (stabs)


The following reply was made to PR symtab/213; it has been noted by GNATS.

From: =?ISO-8859-1?Q?Gustav_H=E5llberg?= <gustav@virtutech.com>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: symtab/213: Type confusion with excluded include files (stabs)
Date: Wed, 20 Aug 2003 07:45:16 +0200

 I have never heard of this "One Definition Rule", but struct definitions 
 only have to be unique within the scope where it is defined; see ISO C 
 standard 6.7.2.3.4:
 ==========
 Two declarations of structure, union, or enumerated types which are in 
 different scopes or use different tags declare distinct types. Each 
 declaration of a structure, union, or enumerated type which does not 
 include a tag declares a distinct type.
 ==========
 
 - Gustav
 


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