public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52130] New: missing check for matching underlying type during instantiation of enum member of class template
@ 2012-02-06 2:14 richard-gccbugzilla at metafoo dot co.uk
0 siblings, 0 replies; only message in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2012-02-06 2:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52130
Bug #: 52130
Summary: missing check for matching underlying type during
instantiation of enum member of class template
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: richard-gccbugzilla@metafoo.co.uk
g++ incorrectly accepts this code in c++11 mode:
template<typename T> struct S { enum E : int; };
template<typename T> enum S<T>::E : T { e };
S<char>::E x = S<char>::e;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-06 2:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-06 2:14 [Bug c++/52130] New: missing check for matching underlying type during instantiation of enum member of class template richard-gccbugzilla at metafoo dot co.uk
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).