This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
- From: bangerth at ticam dot utexas dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 28 Jan 2003 16:43:54 -0000
- Subject: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
- Reply-to: bangerth at ticam dot utexas dot edu
>Number: 9483
>Category: c++
>Synopsis: [3.4 regression] [New parser] Member with same name as class allowed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Tue Jan 28 16:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
3.4 present
>Description:
This can't be right: While looking at PR 7307, I found
that this code
-------------------------
struct test
{
char test;
test();
};
-------------------------now compiles with 3.4 -- note that there's a member with
the same name as the class! I don't think this is legal...
W.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: