This is the mail archive of the gcc-prs@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]

Re: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed


The following reply was made to PR c++/9483; it has been noted by GNATS.

From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
  bangerth@ticam.utexas.edu, gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
Date: Wed, 29 Jan 2003 15:41:48 +0100

 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.
 
 


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