[LLVMbugs] [Bug 7251] New: Clang++ not detecting ambiguous templates

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 28 16:50:27 PDT 2010


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

           Summary: Clang++ not detecting ambiguous templates
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: wales at physics.usyd.edu.au
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The following is accepted by clang++, but rejected by g++ and icpc as an
ambiguous reference as both 'int a' and 'template<T> a' are in the global
namespace.

namespace A {
template<typename T> struct a { };
}

using namespace A;
int a;

/* a<int> should be an ambiguous reference */
a<int> b;


clang++ -v
clang version 2.0 (trunk 103456)
Target: x86_64-apple-darwin10
Thread model: posix

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