c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
bangerth@ticam.utexas.edu
bangerth@ticam.utexas.edu
Tue Jan 28 16:46:00 GMT 2003
>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:
More information about the Gcc-prs
mailing list