[LLVMbugs] [Bug 10393] New: clang things lookup is ambiguous, gcc and edg don't

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 18 10:57:11 PDT 2011


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

           Summary: clang things lookup is ambiguous, gcc and edg don't
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


gcc and edg accept:

namespace mozilla {
  struct Proxy;
}
using mozilla::Proxy;
struct Proxy  {
};
Proxy mProxy;


clang rejects:

 error: reference to 'Proxy' is ambiguous

That code looks really strange, but both gcc and edg accept it.

-- 
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