Commit 75d028ff by Jason Merrill

new

From-SVN: r18709
parent 76b9a14d
template <class T> struct A {
template <class U> void f(U);
};
template <int i> struct B { };
template <class T> template <class U>
void A<T>::f (U)
{
enum { foo };
B<foo> b;
}
int main ()
{
A<char> a;
a.f (42);
}
template <class T> struct B { };
template <class T> struct A {
template <class U, class V> int operator () (U u, V v);
template <class U, class V> void operator () (B<U> u, B<V> v) { }
};
int
main ()
{
A<int> a;
B<char> b1;
B<short> b2;
a (b1, b2);
}
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