public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
@ 2003-01-29 15:06 Wolfgang Bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Bangerth @ 2003-01-29 15:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
Cc: gcc-gnats@gcc.gnu.org, <gcc-bugs@gcc.gnu.org>
Subject: Re: c++/9483: [3.4 regression] [New parser] Member with same name
 as class allowed
Date: Wed, 29 Jan 2003 09:05:22 -0600 (CST)

 On Wed, 29 Jan 2003, Christian Ehrhardt wrote:
 
 > For the sake of completness: Members with the same name as the class
 > are expressly forbidden by 9.2[13].
 
 Of course they are: that name is reserved for the constructor :-)
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth             email:            bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth/
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
@ 2003-01-29 14:46 Christian Ehrhardt
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Ehrhardt @ 2003-01-29 14:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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.
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
@ 2003-01-29 14:33 lerdsuwa
  0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2003-01-29 14:33 UTC (permalink / raw)
  To: bangerth, gcc-bugs, gcc-prs, nobody

Synopsis: [3.4 regression] [New parser] Member with same name as class allowed

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Wed Jan 29 14:33:00 2003
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9483


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/9483: [3.4 regression] [New parser] Member with same name as class allowed
@ 2003-01-28 16:46 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-01-28 16:46 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-29 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 15:06 c++/9483: [3.4 regression] [New parser] Member with same name as class allowed Wolfgang Bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-01-29 14:46 Christian Ehrhardt
2003-01-29 14:33 lerdsuwa
2003-01-28 16:46 bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).