| 1 |
// PR c++/21627 |
| 2 |
|
| 3 |
template<typename T> |
| 4 |
struct TPL |
| 5 |
{ |
| 6 |
TPL (){} |
| 7 |
~TPL (){} |
| 8 |
void method () {} |
| 9 |
}; |
| 10 |
|
| 11 |
template <> TPL<int>::TPL (); |
| 12 |
template <> TPL<int>::~TPL (); |
| 13 |
template <> void TPL<int>::method (); |
| 14 |
|
| 15 |
void Foo () |
| 16 |
{ |
| 17 |
TPL<int> i; |
| 18 |
i.method (); |
| 19 |
} |
| 20 |
|