This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/4784: Anonymous structs issues
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/4784: Anonymous structs issues
- From: Joseph Myers <jsm28 at cam dot ac dot uk>
- Date: Sun, 04 Nov 2001 17:29:28 +0000
- Cc: jsm28 at cam dot ac dot uk
>Number: 4784
>Category: c
>Synopsis: Anonymous structs issues
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Sun Nov 04 09:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Joseph S. Myers
>Release: 3.1 20011103 (experimental)
>Organization:
none
>Environment:
System: Linux digraph 2.2.19 #1 Sun Oct 21 10:19:10 UTC 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-cvs/configure --prefix=/opt/gcc/mainline --disable-shared --enable-threads=posix --with-system-zlib
>Description:
Where anonymous members of structures and unions are used, GCC fails
to detect whether this might lead to multiple interpretations of a
field name.
>How-To-Repeat:
Some examples in
http://gcc.gnu.org/ml/gcc-patches/2001-10/msg00149.html
(see also the rest of that thread).
>Fix:
Appropriate recursive checks. Update the manual to reflect that such
usages are now hard errors.
>Release-Note:
>Audit-Trail:
>Unformatted: