public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/4784] Anonymous structs issues
       [not found] <bug-4784-230@http.gcc.gnu.org/bugzilla/>
@ 2010-01-26 16:33 ` jsm28 at gcc dot gnu dot org
  2010-05-09 16:20 ` jsm28 at gcc dot gnu dot org
  2010-05-09 16:22 ` jsm28 at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2010-01-26 16:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2010-01-26 16:33 -------
C1x anonymous structures and unions will likely require a fix for this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4784


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/4784] Anonymous structs issues
       [not found] <bug-4784-230@http.gcc.gnu.org/bugzilla/>
  2010-01-26 16:33 ` [Bug c/4784] Anonymous structs issues jsm28 at gcc dot gnu dot org
@ 2010-05-09 16:20 ` jsm28 at gcc dot gnu dot org
  2010-05-09 16:22 ` jsm28 at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2010-05-09 16:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2010-05-09 16:20 -------
Subject: Bug 4784

Author: jsm28
Date: Sun May  9 16:19:28 2010
New Revision: 159204

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159204
Log:
        PR c/4784
        * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
        structures and unions recursively.
        (detect_field_duplicates): Move duplicate detection with a hash to
        detect_field_duplicates_hash.  Always use a hash if anonymous
        structures or unions are present.
        * doc/extend.texi (Unnamed Fields): Document that duplicate fields
        give errors.

testsuite:
        * gcc.dg/anon-struct-9.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/anon-struct-9.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/doc/extend.texi
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4784


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/4784] Anonymous structs issues
       [not found] <bug-4784-230@http.gcc.gnu.org/bugzilla/>
  2010-01-26 16:33 ` [Bug c/4784] Anonymous structs issues jsm28 at gcc dot gnu dot org
  2010-05-09 16:20 ` jsm28 at gcc dot gnu dot org
@ 2010-05-09 16:22 ` jsm28 at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2010-05-09 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jsm28 at gcc dot gnu dot org  2010-05-09 16:21 -------
Fixed for 4.6.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |4.6.0
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4784


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/4784] Anonymous structs issues
       [not found] <bug-4784-4@http.gcc.gnu.org/bugzilla/>
@ 2011-02-07  2:37 ` jsm28 at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2011-02-07  2:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4784

Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jengelh at medozas dot de

--- Comment #9 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2011-02-07 02:00:15 UTC ---
*** Bug 47376 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/4784] Anonymous structs issues
       [not found] <20011104093600.4784.jsm28@cam.ac.uk>
@ 2003-06-07 20:59 ` pinskia@physics.uc.edu
  0 siblings, 0 replies; 5+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-07 20:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4784


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-07 20:59:21
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-06-07 20:59 -------
This is a bug because gcc should error that x is already declared.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-07  2:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-4784-230@http.gcc.gnu.org/bugzilla/>
2010-01-26 16:33 ` [Bug c/4784] Anonymous structs issues jsm28 at gcc dot gnu dot org
2010-05-09 16:20 ` jsm28 at gcc dot gnu dot org
2010-05-09 16:22 ` jsm28 at gcc dot gnu dot org
     [not found] <bug-4784-4@http.gcc.gnu.org/bugzilla/>
2011-02-07  2:37 ` jsm28 at gcc dot gnu.org
     [not found] <20011104093600.4784.jsm28@cam.ac.uk>
2003-06-07 20:59 ` pinskia@physics.uc.edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).