Commit 98e10ea1 by Jason Merrill

new

From-SVN: r17553
parent 7bf2682f
struct S
{
void f(int);
void f(double);
};
void g(int);
void g(double);
template <int* IP>
void foo();
template <long l>
void foo();
void bar()
{
foo<S::f>(); // ERROR - no matching function
foo<g>(); // ERROR - no matching function
}
class X
{
public:
template <typename A, typename B, typename C>
X() {}
template <typename A, typename B>
X::X<A, void, B>() {} // ERROR - non-template type used as a template
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment