[llvm-bugs] [Bug 35042] New: clang disagrees with {gcc, icc, msvc} about ambiguous name
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Mon Oct 23 12:47:01 PDT 2017
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=35042
            Bug ID: 35042
           Summary: clang disagrees with {gcc,icc,msvc} about ambiguous
                    name
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: chisophugis at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
GCC and clang seem to disagree about whether the reference to `isa` in this
snippet is valid:
namespace myarch {
  namespace isa {
  }
}
using namespace myarch;
namespace llvm {
  template <typename T>
  void isa() {}
}
using namespace llvm;
void f() {
  isa<int>();
}
Clang accepts this code. GCC says `error: reference to 'isa' is ambiguous`.
https://godbolt.org/g/ix2jsS
Also, ICC and MSVC seem to believe that it is ambiguous as well.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171023/bd3eeda8/attachment.html>
    
    
More information about the llvm-bugs
mailing list