public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50518] New: repeated c++11 opaque enum declarations are invalid
@ 2011-09-25 20:48 fabien at gcc dot gnu.org
2011-11-16 8:37 ` [Bug c++/50518] [C++0x] " fabien at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: fabien at gcc dot gnu.org @ 2011-09-25 20:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50518
Bug #: 50518
Summary: repeated c++11 opaque enum declarations are invalid
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fabien@gcc.gnu.org
The below example should not compile:
struct B
{
enum E: int;
enum E: int;
};
Repeating opaque-enum-declarations at class scope is invalid under 9.2/1:
--
A member shall not be declared twice in the member-specification, except that a
nested class or member class template can be declared and then later defined,
and except that an enumeration can be introduced with an
opaque-enum-declaration and later redeclared with an enum-specifier.
--
However,
struct A
{
enum E: int;
enum E: int { e1 };
};
is OK.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/50518] [C++0x] repeated c++11 opaque enum declarations are invalid
2011-09-25 20:48 [Bug c++/50518] New: repeated c++11 opaque enum declarations are invalid fabien at gcc dot gnu.org
@ 2011-11-16 8:37 ` fabien at gcc dot gnu.org
2011-12-20 10:56 ` paolo.carlini at oracle dot com
2011-12-20 13:37 ` fabien at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: fabien at gcc dot gnu.org @ 2011-11-16 8:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50518
fabien at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-11-16
AssignedTo|unassigned at gcc dot |fabien at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/50518] [C++0x] repeated c++11 opaque enum declarations are invalid
2011-09-25 20:48 [Bug c++/50518] New: repeated c++11 opaque enum declarations are invalid fabien at gcc dot gnu.org
2011-11-16 8:37 ` [Bug c++/50518] [C++0x] " fabien at gcc dot gnu.org
@ 2011-12-20 10:56 ` paolo.carlini at oracle dot com
2011-12-20 13:37 ` fabien at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-20 10:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50518
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-20 10:54:06 UTC ---
Any news on this?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/50518] [C++0x] repeated c++11 opaque enum declarations are invalid
2011-09-25 20:48 [Bug c++/50518] New: repeated c++11 opaque enum declarations are invalid fabien at gcc dot gnu.org
2011-11-16 8:37 ` [Bug c++/50518] [C++0x] " fabien at gcc dot gnu.org
2011-12-20 10:56 ` paolo.carlini at oracle dot com
@ 2011-12-20 13:37 ` fabien at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: fabien at gcc dot gnu.org @ 2011-12-20 13:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50518
--- Comment #2 from fabien at gcc dot gnu.org 2011-12-20 13:29:26 UTC ---
(In reply to comment #1)
> Any news on this?
No, sorry, I'll try to work on it before the end of stage 3.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-20 13:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-25 20:48 [Bug c++/50518] New: repeated c++11 opaque enum declarations are invalid fabien at gcc dot gnu.org
2011-11-16 8:37 ` [Bug c++/50518] [C++0x] " fabien at gcc dot gnu.org
2011-12-20 10:56 ` paolo.carlini at oracle dot com
2011-12-20 13:37 ` fabien at gcc dot gnu.org
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).