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++/40746] New: namespace-qualified lookup misses some ambiguities


namespace A
{
  int i;                        // { dg-error "i" }
}
using namespace A;
namespace B
{
  namespace B2
  {
    int i;                      // { dg-error "i" }
  }
  using namespace B2;
}
using namespace B;

int j = ::i;                    // { dg-error "ambiguous" }

The code currently doesn't look into B2 because it found something in A.


-- 
           Summary: namespace-qualified lookup misses some ambiguities
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: jason at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org


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


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