This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: symtab/213: Type confusion with excluded include files (stabs)
- From: Gustav Hållberg <gustav at virtutech dot com>
- To: mec at shout dot net
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 20 Aug 2003 05:48:00 -0000
- Subject: Re: symtab/213: Type confusion with excluded include files (stabs)
- Reply-to: Gustav Hållberg <gustav at virtutech dot com>
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