| 1 |
// PR c++/49507 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<typename T> |
| 5 |
struct ConcretePoolKey |
| 6 |
{ |
| 7 |
virtual ~ConcretePoolKey(); |
| 8 |
}; |
| 9 |
|
| 10 |
template<typename T> |
| 11 |
ConcretePoolKey<T>::~ConcretePoolKey() = default; |
| 12 |
|
| 13 |
int main() |
| 14 |
{ |
| 15 |
ConcretePoolKey<int> foo; |
| 16 |
} |