| 1 |
// PR c++/105386 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<class T> struct NoInst { |
| 5 |
static_assert(sizeof(T) == 9999, "NoInst instantiated"); |
| 6 |
}; |
| 7 |
|
| 8 |
template<class T> NoInst<T> f(T); |
| 9 |
|
| 10 |
template<class> |
| 11 |
struct A { |
| 12 |
using type = decltype(f(0)); |
| 13 |
}; |
| 14 |
|
| 15 |
A<int> a; |