This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52465] New: g++ rejects valid code with in-class using declaration
- From: "vanboxem.ruben at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Mar 2012 09:52:14 +0000
- Subject: [Bug c++/52465] New: g++ rejects valid code with in-class using declaration
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52465
Bug #: 52465
Summary: g++ rejects valid code with in-class using declaration
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: vanboxem.ruben@gmail.com
This code is rejected by GCC 4.7 (built 2/25), but accepted by everything else:
class A
{
protected:
struct B {};
};
class C : A
{
protected:
using A::B;
struct D : public B {};
};
This prevents WebKit compilation where a similar construct is used.