This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51214] [C++11] name lookup issue with c++11 enums
- From: "fabien at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Dec 2011 20:02:15 +0000
- Subject: [Bug c++/51214] [C++11] name lookup issue with c++11 enums
- Auto-submitted: auto-generated
- References: <bug-51214-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51214
--- Comment #1 from fabien at gcc dot gnu.org 2011-12-29 20:02:15 UTC ---
Here is a correct testcase for this bug.
// { dg-do compile }
// { dg-options "-std=c++0x" }
enum { A = 1 };
struct T
{
int i1, i2, i3, i4, i5, i6, i7;
enum E2 : int;
};
enum T::E2 : int { A1 = A };
int i = T::A1;