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: unassignedclangb...@nondot.org
Reporter: chisophu...@gmail.com
CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs