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++/52465] New: g++ rejects valid code with in-class using declaration


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.


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