[Bug c++/51214] [C++11] name lookup issue with c++11 enums
fabien at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 29 20:56:00 GMT 2011
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;
More information about the Gcc-bugs
mailing list