[LLVMbugs] [Bug 10361] New: Ambiguity with name lookup into namespace with inline namespaces not detected

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 14 13:41:08 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10361

           Summary: Ambiguity with name lookup into namespace with inline
                    namespaces not detected
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: schaub.johannes at googlemail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This ambiguity is not detected by clang. Apparently it stops looking into 'A'
when it finds the direct declaration of 'f' in A, and doesn't look into the
inline namespace. The FDIS says that name lookup for A::f yields both A::f and
A::B::f. 

namespace A {
inline namespace B {
  template<typename A> struct f { };
}
template<typename A>
struct f { };
}

int main() {
  A::f<int>();
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list