public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32053] New: Anonymous union members' names should be distinct within enclosing scope
@ 2007-05-23 9:05 andrew dot stubbs at st dot com
2007-10-31 16:15 ` [Bug c++/32053] " andrew dot stubbs at st dot com
2009-12-26 14:32 ` paolo dot carlini at oracle dot com
0 siblings, 2 replies; 3+ messages in thread
From: andrew dot stubbs at st dot com @ 2007-05-23 9:05 UTC (permalink / raw)
To: gcc-bugs
The following program should not compile:
extern int foo;
static union
{
int foo; // clash
};
C++ standard clause 9.5/2 states that members of anonymous unions must have
names distinct from other names in the same scope.
If the `extern' keyword is removed from the example above, the error is
diagnosed correctly (followed by an ICE).
--
Summary: Anonymous union members' names should be distinct within
enclosing scope
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: andrew dot stubbs at st dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32053
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/32053] Anonymous union members' names should be distinct within enclosing scope
2007-05-23 9:05 [Bug c++/32053] New: Anonymous union members' names should be distinct within enclosing scope andrew dot stubbs at st dot com
@ 2007-10-31 16:15 ` andrew dot stubbs at st dot com
2009-12-26 14:32 ` paolo dot carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: andrew dot stubbs at st dot com @ 2007-10-31 16:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from andrew dot stubbs at st dot com 2007-10-31 16:15 -------
This bug appears to be no longer present in GCC 4.2.1.
--
andrew dot stubbs at st dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.1.1
Known to work| |3.4.3 4.2.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32053
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/32053] Anonymous union members' names should be distinct within enclosing scope
2007-05-23 9:05 [Bug c++/32053] New: Anonymous union members' names should be distinct within enclosing scope andrew dot stubbs at st dot com
2007-10-31 16:15 ` [Bug c++/32053] " andrew dot stubbs at st dot com
@ 2009-12-26 14:32 ` paolo dot carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-26 14:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo dot carlini at oracle dot com 2009-12-26 14:32 -------
Yes, fixed long time ago.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to work|3.4.3 4.2.1 |3.4.3 4.2.1 4.4.0
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32053
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-26 14:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-23 9:05 [Bug c++/32053] New: Anonymous union members' names should be distinct within enclosing scope andrew dot stubbs at st dot com
2007-10-31 16:15 ` [Bug c++/32053] " andrew dot stubbs at st dot com
2009-12-26 14:32 ` paolo dot carlini at oracle dot com
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).