public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32054] New: Storage classes on anonymous unions in classes
@ 2007-05-23 9:24 andrew dot stubbs at st dot com
2008-12-31 18:03 ` [Bug c++/32054] " pinskia at gcc dot gnu dot org
2009-12-26 14:30 ` 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:24 UTC (permalink / raw)
To: gcc-bugs
The following program should not compile.
class C
{
auto union // bad
{
int a;
};
register union // bad
{
int b;
};
static union // bad
{
int c;
};
extern union // bad
{
int d;
};
mutable union // bad
{
int e;
};
};
auto, register, and extern are not normally allowed in classes.
static and mutable might be allowed on other members, but not on anonymous
unions. See C++ standard clause 9.5/3.
--
Summary: Storage classes on anonymous unions in classes
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=32054
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-26 14:30 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:24 [Bug c++/32054] New: Storage classes on anonymous unions in classes andrew dot stubbs at st dot com
2008-12-31 18:03 ` [Bug c++/32054] " pinskia at gcc dot gnu dot org
2009-12-26 14:30 ` 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).