public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30734]  New: name conflict between class and namespace name is not recognized
@ 2007-02-08  9:59 ulrich dot lauther at siemens dot com
  2007-02-08 10:16 ` [Bug c++/30734] " gdr at cs dot tamu dot edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ulrich dot lauther at siemens dot com @ 2007-02-08  9:59 UTC (permalink / raw)
  To: gcc-bugs

1  namespace Foo {
   2  };
   3  
   4  class Foo {
   5  };
   6  
   7  int main() {
   8    class Foo1 : public Foo {
   9    };
  10    Foo1 my_Foo1; 
  11    Foo my_foo;
  12    return 0;
  13  }
  14  
  15  
Foo.C: In function 'int main()':
Foo.C:11: error: expected primary-expression before 'my_foo'
Foo.C:11: error: expected `;' before 'my_foo'

on line 8 and 10, "Foo" is understod asa class name, on line 11 as a namespace
Without line 11, no error message at all


-- 
           Summary: name conflict between class and namespace name is not
                    recognized
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ulrich dot lauther at siemens dot com
 GCC build triplet: 686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: 686-pc-linux-gnu


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


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
@ 2007-02-08 10:16 ` gdr at cs dot tamu dot edu
  2007-02-08 10:16 ` [Bug c++/30734] New: " Gabriel Dos Reis
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gdr at cs dot tamu dot edu @ 2007-02-08 10:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from gdr at cs dot tamu dot edu  2007-02-08 10:16 -------
Subject: Re:   New: name conflict between class and namespace name is not
recognized

"ulrich dot lauther at siemens dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| 1  namespace Foo {
|    2  };
|    3  
|    4  class Foo {
|    5  };
|    6  
|    7  int main() {
|    8    class Foo1 : public Foo {
|    9    };
|   10    Foo1 my_Foo1; 
|   11    Foo my_foo;
|   12    return 0;
|   13  }
|   14  
|   15  
| Foo.C: In function 'int main()':
| Foo.C:11: error: expected primary-expression before 'my_foo'
| Foo.C:11: error: expected `;' before 'my_foo'
| 
| on line 8 and 10, "Foo" is understod asa class name, on line 11 as a
namespace
| Without line 11, no error message at all

Line 4 is invalid; the front-end should have issued a diagnostic there.

-- Gaby


-- 


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


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

* Re: [Bug c++/30734]  New: name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
  2007-02-08 10:16 ` [Bug c++/30734] " gdr at cs dot tamu dot edu
@ 2007-02-08 10:16 ` Gabriel Dos Reis
  2007-02-08 10:46 ` [Bug c++/30734] " rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Gabriel Dos Reis @ 2007-02-08 10:16 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

"ulrich dot lauther at siemens dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| 1  namespace Foo {
|    2  };
|    3  
|    4  class Foo {
|    5  };
|    6  
|    7  int main() {
|    8    class Foo1 : public Foo {
|    9    };
|   10    Foo1 my_Foo1; 
|   11    Foo my_foo;
|   12    return 0;
|   13  }
|   14  
|   15  
| Foo.C: In function 'int main()':
| Foo.C:11: error: expected primary-expression before 'my_foo'
| Foo.C:11: error: expected `;' before 'my_foo'
| 
| on line 8 and 10, "Foo" is understod asa class name, on line 11 as a namespace
| Without line 11, no error message at all

Line 4 is invalid; the front-end should have issued a diagnostic there.

-- Gaby


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
  2007-02-08 10:16 ` [Bug c++/30734] " gdr at cs dot tamu dot edu
  2007-02-08 10:16 ` [Bug c++/30734] New: " Gabriel Dos Reis
@ 2007-02-08 10:46 ` rguenth at gcc dot gnu dot org
  2007-04-05  5:11 ` fang at csl dot cornell dot edu
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-08 10:46 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|686-pc-linux-gnu            |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|686-pc-linux-gnu            |
           Keywords|                            |accepts-invalid
      Known to fail|                            |4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-08 10:46:10
               date|                            |


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


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
                   ` (2 preceding siblings ...)
  2007-02-08 10:46 ` [Bug c++/30734] " rguenth at gcc dot gnu dot org
@ 2007-04-05  5:11 ` fang at csl dot cornell dot edu
  2007-05-23  0:16 ` aaw at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: fang at csl dot cornell dot edu @ 2007-04-05  5:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fang at csl dot cornell dot edu  2007-04-05 06:11 -------
PR 2708 dup?


-- 


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


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
                   ` (3 preceding siblings ...)
  2007-04-05  5:11 ` fang at csl dot cornell dot edu
@ 2007-05-23  0:16 ` aaw at gcc dot gnu dot org
  2007-05-23  0:19 ` aaw at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aaw at gcc dot gnu dot org @ 2007-05-23  0:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from aaw at gcc dot gnu dot org  2007-05-23 01:16 -------
Resolved by r124960 (cf.
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01182.html).


-- 

aaw at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
                   ` (4 preceding siblings ...)
  2007-05-23  0:16 ` aaw at gcc dot gnu dot org
@ 2007-05-23  0:19 ` aaw at gcc dot gnu dot org
  2007-05-27 20:58 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aaw at gcc dot gnu dot org @ 2007-05-23  0:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from aaw at gcc dot gnu dot org  2007-05-23 01:19 -------
*** Bug 2708 has been marked as a duplicate of this bug. ***


-- 

aaw at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jungman at lanl dot gov


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


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
                   ` (5 preceding siblings ...)
  2007-05-23  0:19 ` aaw at gcc dot gnu dot org
@ 2007-05-27 20:58 ` reichelt at gcc dot gnu dot org
  2007-12-26 19:40 ` reichelt at gcc dot gnu dot org
  2008-07-31  8:40 ` paolo dot carlini at oracle dot com
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-27 20:58 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
                   ` (6 preceding siblings ...)
  2007-05-27 20:58 ` reichelt at gcc dot gnu dot org
@ 2007-12-26 19:40 ` reichelt at gcc dot gnu dot org
  2008-07-31  8:40 ` paolo dot carlini at oracle dot com
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-26 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2007-12-26 19:40 -------
*** Bug 33287 has been marked as a duplicate of this bug. ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilgb at livius dot net


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


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

* [Bug c++/30734] name conflict between class and namespace name is not recognized
  2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
                   ` (7 preceding siblings ...)
  2007-12-26 19:40 ` reichelt at gcc dot gnu dot org
@ 2008-07-31  8:40 ` paolo dot carlini at oracle dot com
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-07-31  8:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo dot carlini at oracle dot com  2008-07-31 08:39 -------
*** Bug 36709 has been marked as a duplicate of this bug. ***


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rquabili at princeton dot
                   |                            |edu


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


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

end of thread, other threads:[~2008-07-31  8:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08  9:59 [Bug c++/30734] New: name conflict between class and namespace name is not recognized ulrich dot lauther at siemens dot com
2007-02-08 10:16 ` [Bug c++/30734] " gdr at cs dot tamu dot edu
2007-02-08 10:16 ` [Bug c++/30734] New: " Gabriel Dos Reis
2007-02-08 10:46 ` [Bug c++/30734] " rguenth at gcc dot gnu dot org
2007-04-05  5:11 ` fang at csl dot cornell dot edu
2007-05-23  0:16 ` aaw at gcc dot gnu dot org
2007-05-23  0:19 ` aaw at gcc dot gnu dot org
2007-05-27 20:58 ` reichelt at gcc dot gnu dot org
2007-12-26 19:40 ` reichelt at gcc dot gnu dot org
2008-07-31  8:40 ` paolo dot carlini at oracle dot com

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