[Bug c/46116] Allow passing of anonymous aggregates when signature matches

2024-04-02 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46116

uecker at gcc dot gnu.org changed:

   What|Removed |Added

 CC||uecker at gcc dot gnu.org

--- Comment #5 from uecker at gcc dot gnu.org ---

It requires a tag though as WG14 did not want to allow this for anonymous
structs.

[Bug c/46116] Allow passing of anonymous aggregates when signature matches

2024-04-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46116

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |14.0
 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED

--- Comment #4 from Andrew Pinski  ---
Fixed for GCC 14 with C23 work.

[Bug c/46116] Allow passing of anonymous aggregates when signature matches

2021-10-16 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46116

Martin Uecker  changed:

   What|Removed |Added

 CC||muecker at gwdg dot de

--- Comment #3 from Martin Uecker  ---
I have a(very preliminary) patch  here:
https://github.com/uecker/gcc/tree/tagcompat

It implements an option -ftagcompat that makes structs with same tag (or no
tag) and content compatible as proposed in N2366.

[Bug c/46116] Allow passing of anonymous aggregates when signature matches

2010-10-22 Thread robert.staudinger at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46116

--- Comment #2 from Rob Staudinger robert.staudinger at gmail dot com 
2010-10-22 06:04:04 UTC ---
(In reply to comment #1)
 Did you see the first warning message:
[...]

Yes and I did not like it much either, because in my book the idea of an
anonymous declaration is that it's only valid in a restricted scope.


[Bug c/46116] Allow passing of anonymous aggregates when signature matches

2010-10-21 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46116

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

   Severity|minor   |enhancement

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2010-10-21 
18:36:28 UTC ---
Did you see the first warning message:
t.c:6:11: warning: anonymous struct declared inside parameter list [enabled by
default]
t.c:6:11: warning: its scope is only this definition or declaration, which is
probably not what you want [enabled by default]