public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17353] New: type name in nested class conflicts with name in outer class
@ 2004-09-07 19:44 giovannibajo at libero dot it
  2004-09-07 19:44 ` [Bug c++/17353] " giovannibajo at libero dot it
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-07 19:44 UTC (permalink / raw)
  To: gcc-bugs

The following code does not compile:

--------------------------------------------------
struct cause_error
{
  typedef int type;
  struct nested { typedef type type; };
};
--------------------------------------------------
jeff.cc:4: error: declaration of `typedef int cause_error::nested::type'
jeff.cc:3: error: changes meaning of `type' from `typedef int cause_error::type'

I am fairly positive it is legal code, though. It never compiled on any version 
of GCC so far.

-- 
           Summary: type name in nested class conflicts with name in outer
                    class
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-17353-253@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-03-30 19:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-07 19:44 [Bug c++/17353] New: type name in nested class conflicts with name in outer class giovannibajo at libero dot it
2004-09-07 19:44 ` [Bug c++/17353] " giovannibajo at libero dot it
2004-09-07 20:09 ` giovannibajo at libero dot it
2005-07-31  5:40 ` pinskia at gcc dot gnu dot org
2005-07-31  5:40 ` pinskia at gcc dot gnu dot org
2005-07-31  5:46 ` pinskia at gcc dot gnu dot org
2005-07-31  5:52 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17353-253@http.gcc.gnu.org/bugzilla/>
2006-03-30 19:56 ` 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).