public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15821] New: Duplicate namespace alias within namespace rejected
@ 2004-06-04 15:00 stephan dot bergmann at sun dot com
  2004-06-04 15:09 ` [Bug c++/15821] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2004-06-04 15:44 ` bangerth at dealii dot org
  0 siblings, 2 replies; 3+ messages in thread
From: stephan dot bergmann at sun dot com @ 2004-06-04 15:00 UTC (permalink / raw)
  To: gcc-bugs

The code

  namespace a {}
  namespace b {
    namespace c = a;
    namespace c = a;
  }

fails for 3.4.0 ("declaration of 'namespace c = a;' conflicts with previous
declaration 'namespace c = a;'"), but works for 3.3.3.  The simpler code

  namespace a {}
  namespace c = a;
  namespace c = a;

works for both 3.4.0 and 3.3.3.

-- 
           Summary: Duplicate namespace alias within namespace rejected
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stephan dot bergmann at sun dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-06-04 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-04 15:00 [Bug c++/15821] New: Duplicate namespace alias within namespace rejected stephan dot bergmann at sun dot com
2004-06-04 15:09 ` [Bug c++/15821] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-06-04 15:44 ` bangerth at dealii 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).