This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15821] New: Duplicate namespace alias within namespace rejected


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]