http://llvm.org/bugs/show_bug.cgi?id=6831
Summary: Spurious ambiguity error related to template parameter
usage.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
For the following test program:
namespace NA { struct S; }
namespace NB { struct S; }
using namespace NA;
using namespace NB;
template <typename S> void foo();
clang++ reports the following error:
$ clang++ -fsyntax-only bug.cc
error: reference to 'S' is ambiguous
bug.cc:1:23: note: candidate found by name lookup is 'NA::S'
namespace NA { struct S; }
^
bug.cc:2:23: note: candidate found by name lookup is 'NB::S'
namespace NB { struct S; }
^
1 error generated.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs