[LLVMbugs] [Bug 6831] New: Spurious ambiguity error related to template parameter usage.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 14 02:37:33 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: zaffanella at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list