public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33677]  New: Member with same name as class
@ 2007-10-06 13:40 s__nakayama at infoseek dot jp
  2007-10-09 22:22 ` [Bug c++/33677] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: s__nakayama at infoseek dot jp @ 2007-10-06 13:40 UTC (permalink / raw)
  To: gcc-bugs

GCC accept test1.cc. But GCC reject test2.cc.
IMHO, this code is valid. 

test1.cc:
struct foo
{
  ~foo(){}
  int foo;
};

test2.cc:
struct foo
{
  int foo;
  ~foo(){}
};


-- 
           Summary: Member with same name as class
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: s__nakayama at infoseek dot jp


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33677


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

end of thread, other threads:[~2009-01-02 19:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-06 13:40 [Bug c++/33677] New: Member with same name as class s__nakayama at infoseek dot jp
2007-10-09 22:22 ` [Bug c++/33677] " pinskia at gcc dot gnu dot org
2007-10-11 13:50 ` s__nakayama at infoseek dot jp
2009-01-01  4:12 ` pinskia at gcc dot gnu dot org
2009-01-01  4:19 ` pinskia at gcc dot gnu dot org
2009-01-01  4:22 ` [Bug c++/33677] Member with same name as class is not rejected pinskia at gcc dot gnu dot org
2009-01-02 14:53 ` s__nakayama at infoseek dot jp
2009-01-02 19:04 ` [Bug c++/33677] [DR 80] Member with same name as class is rejected pinskia at gcc dot gnu dot org

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).