[Bug c++/51214] [4.7 Regression] [C++11] name lookup issue with c++11 enums
fabien at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 28 20:21:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51214
fabien at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[C++11] name lookup issue |[4.7 Regression] [C++11]
|with c++11 enums |name lookup issue with
| |c++11 enums
--- Comment #2 from fabien at gcc dot gnu.org 2012-02-28 20:19:23 UTC ---
We can manage to mark this bug as a 4.7 Regression, evidence below (to be
compiled with -std=c++11 obviously).
struct Base
{
int b1, b2, b3;
};
struct T : Base
{
int t1, t2, t3;
using Base::b1;
using Base::b2;
using Base::b3;
enum E2 : int;
};
enum T::E2 : int { A1 = 23 };
int i = T::A1;
I have a patch for it.
More information about the Gcc-bugs
mailing list