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++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced (whether the function is virtual or not is irrelevant):

struct B
{
  struct S {};
};

struct D : B
{
  using B::S;
  void doIt(struct S&);
};

void D::doIt(struct S&)
{
}


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