blob: 4750db35cd84702639fb9585bcc896322c8f3b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// PR c++/88325
// { dg-do compile { target c++2a } }
template<typename> struct A
{
template<typename> A ();
};
template<typename T>
template<typename U>
A<T>::A<U> () // { dg-error "partial specialization" }
{
}
template<typename> struct B
{
template<typename> int foo (int);
};
template<typename T>
template<typename U>
B<T>::foo<int>(int) // { dg-error "partial specialization|declaration" }
{
return 1;
}
|