This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Apr 2014 12:02:06 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-60894-4 at http dot gcc dot gnu dot org/bugzilla/>
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&)
{
}