This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51214] [C++11] name lookup issue with c++11 enums


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]