This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, bangerth at ticam dot utexas dot edu, gcc-prs at gcc dot gnu dot org
- Date: Wed, 29 Jan 2003 15:41:48 +0100
- Subject: Re: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
For the sake of completness: Members with the same name as the class
are expressly forbidden by 9.2[13]. Surpringly members of an
anon struct or union with the same name as the class are properly
diagnosed.