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++/14821] New: [3.4/3.5 Regression] Duplicate namespace alias declaration should not conflict


-----------------------------------
namespace A {
  namespace B {}
}

namespace A {
  namespace Alias = ::A::B;
}

namespace A {
  namespace Alias = ::A::B;
}
-----------------------------------
namespace.cc:10: error: declaration of `namespace Alias = A::B;'
namespace.cc:6: error: conflicts with previous declaration `namespace Alias = A:
:B;'


This is obviously bogus, and breaks a library currently under review for Boost. 
The workaround is harder than one might think because the conflicting aliases 
come from different headers.

-- 
           Summary: [3.4/3.5 Regression] Duplicate namespace alias
                    declaration should not conflict
           Product: gcc
           Version: tree-ssa
            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=14821


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