[LLVMbugs] [Bug 8055] New: using declaration not adding template candidates?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 1 15:49:57 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8055
Summary: using declaration not adding template candidates?
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
We think this program is valid:
struct Base {
template<int> static void Foo() {}
static void Bar(int) {}
};
struct Derived : Base {
using Base::Foo;
template<void*> static void Foo() {}
};
void Test2() {
Derived::Foo<1>();
}
but clang gives the diagnostic:
b2944320.cc:12:3: error: no matching function for call to 'Foo'
Derived::Foo<1>();
^~~~~~~~~~~~~~~
b2944320.cc:8:31: note: candidate template ignored: invalid
explicitly-specified
argument for 1st template parameter
template<void*> static void Foo() {}
^
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