This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6894: lookup of anonymous structure members does not work as in C frontend
- From: rth at gcc dot gnu dot org
- To: bernie at codewiz dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 2 Jun 2002 06:57:48 -0000
- Subject: Re: c++/6894: lookup of anonymous structure members does not work as in C frontend
- Reply-to: rth at gcc dot gnu dot org, bernie at codewiz dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: lookup of anonymous structure members does not work as in C frontend
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Sat Jun 1 23:57:48 2002
State-Changed-Why:
This isn't legal.
struct Bar { struct Foo; };
This is a forward declaration of Bar::Foo, and so doesn't do
what you think it does. Note that this is a Microsoft VC++
extension that we don't support in the C++ front end.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6894