[Bug c/10676] Using unnamed fields in initializers

2010-05-14 Thread balrogg at gmail dot com
--- Comment #18 from balrogg at gmail dot com 2010-05-15 03:23 --- (In reply to comment #11) An example program that shows 3 different methods. Only one works (see comment) .c = 3, //Will not work {.c = 3}, //works {.c= 2}, //Does not work For sake of documentation, with

[Bug c/10676] Using unnamed fields in initializers

2010-05-09 Thread jsm28 at gcc dot gnu dot org
--- Comment #15 from jsm28 at gcc dot gnu dot org 2010-05-09 20:39 --- Subject: Bug 10676 Author: jsm28 Date: Sun May 9 20:39:39 2010 New Revision: 159206 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159206 Log: PR c/10676 * c-typeck.c (lookup_field): Take a

[Bug c/10676] Using unnamed fields in initializers

2010-05-09 Thread jsm28 at gcc dot gnu dot org
--- Comment #16 from jsm28 at gcc dot gnu dot org 2010-05-09 20:42 --- Fixed for 4.6. -- jsm28 at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug c/10676] Using unnamed fields in initializers

2010-05-09 Thread davek at gcc dot gnu dot org
--- Comment #17 from davek at gcc dot gnu dot org 2010-05-09 21:00 --- Thank you! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676

[Bug c/10676] Using unnamed fields in initializers

2010-01-26 Thread mat at lcs dot mit dot edu
--- Comment #12 from mat at lcs dot mit dot edu 2010-01-26 16:25 --- *** Bug 42875 has been marked as a duplicate of this bug. *** -- mat at lcs dot mit dot edu changed: What|Removed |Added

[Bug c/10676] Using unnamed fields in initializers

2010-01-26 Thread mat at lcs dot mit dot edu
--- Comment #13 from mat at lcs dot mit dot edu 2010-01-26 16:28 --- This bug is causing me difficulty porting from an EDG-based compiler to gcc-4.4.3. EDG implemented assignment and initialization as having the same namespace. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676

[Bug c/10676] Using unnamed fields in initializers

2010-01-26 Thread jsm28 at gcc dot gnu dot org
--- Comment #14 from jsm28 at gcc dot gnu dot org 2010-01-26 16:32 --- C1x anonymous structures and unions will likely require a fix for this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676

[Bug c/10676] Using unnamed fields in initializers

2009-08-27 Thread jan dot cornelis at gmail dot com
--- Comment #11 from jan dot cornelis at gmail dot com 2009-08-27 14:57 --- An example program that shows 3 different methods. Only one works (see comment) As I used the names for each field, I assumed that all 3 examples should work. #include inttypes.h #include stdio.h struct a_t

[Bug c/10676] Using unnamed fields in initializers

2009-07-06 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2009-07-06 19:30 --- *** Bug 40656 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/10676] Using unnamed fields in initializers

2008-11-05 Thread josh at freedesktop dot org
--- Comment #6 from josh at freedesktop dot org 2008-11-05 17:19 --- *** Bug 38019 has been marked as a duplicate of this bug. *** -- josh at freedesktop dot org changed: What|Removed |Added

[Bug c/10676] Using unnamed fields in initializers

2008-11-05 Thread josh at freedesktop dot org
--- Comment #7 from josh at freedesktop dot org 2008-11-05 17:20 --- Still happens with GCC 4.3.2: $ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs

[Bug c/10676] Using unnamed fields in initializers

2008-11-05 Thread josh at freedesktop dot org
--- Comment #8 from josh at freedesktop dot org 2008-11-05 17:21 --- How can I update the last confirmed date to today? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676

[Bug c/10676] Using unnamed fields in initializers

2007-02-09 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-02-09 18:43 --- *** Bug 30737 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/10676] Using unnamed fields in initializers

2005-09-26 Thread jsm28 at gcc dot gnu dot org
--- Additional Comments From jsm28 at gcc dot gnu dot org 2005-09-26 12:15 --- *** Bug 24065 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug c/10676] Using unnamed fields in initializers

2005-02-15 Thread jrydberg at gnu dot org
--- Additional Comments From jrydberg at gnu dot org 2005-02-15 18:30 --- Still happens on 4.0 snapshot of 20050213 : $ /gnu/bin/gcc -c pr10676.c pr10676.c:9: error: unknown field 'foo' specified in initializer $ /gnu/bin/gcc -v ... gcc version 4.0.0 20050213 (experimental) --