// PR c++/53524 template struct A { enum EA { ea }; }; template struct B { enum EB { eb1 = A::ea, eb2 = A::ea, eb3 = 0 ? eb1 : eb2 }; }; B b;