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

* [Bug c++/17353] type name in nested class conflicts with name in outer class
  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 ` giovannibajo at libero dot it
  2004-09-07 20:09 ` giovannibajo at libero dot it
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-07 19:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |2.95.3 3.0.4 3.2.3 3.3.3
                   |                            |3.4.0 3.5.0


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


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

* [Bug c++/17353] type name in nested class conflicts with name in outer class
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-07 20:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-09-07 20:09 -------
Sorry, this is invalid as per [basic.scope.class].


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug c++/17353] type name in nested class conflicts with name in outer class
  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
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31  5:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-31 05:40 -------
*** Bug 17644 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris at kolpackov dot net


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


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

* [Bug c++/17353] type name in nested class conflicts with name in outer class
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31  5:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-31 05:39 -------
*** Bug 23156 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |igodard at pacbell dot net


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


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

* [Bug c++/17353] type name in nested class conflicts with name in outer class
  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
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31  5:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-31 05:42 -------
*** Bug 18320 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug c++/17353] type name in nested class conflicts with name in outer class
  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
                   ` (4 preceding siblings ...)
  2005-07-31  5:46 ` pinskia at gcc dot gnu dot org
@ 2005-07-31  5:52 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31  5:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-31 05:41 -------
*** Bug 17605 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djn at daimi dot au dot dk


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


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

* [Bug c++/17353] type name in nested class conflicts with name in outer class
       [not found] <bug-17353-253@http.gcc.gnu.org/bugzilla/>
@ 2006-03-30 19:56 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-30 19:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-03-30 19:55 -------
*** Bug 26940 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |v dot haisman at sh dot cvut
                   |                            |dot cz


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


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

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