| 1 |
// Contributed by Dodji Seketeli <[email protected]> |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct F { F(int) {}}; |
| 5 |
|
| 6 |
template<class T, T* u> |
| 7 |
struct S |
| 8 |
{ |
| 9 |
decltype(u) foo(T); |
| 10 |
}; |
| 11 |
|
| 12 |
template<class T, T *u> |
| 13 |
decltype(u) S<T, u>::foo(T) |
| 14 |
{ |
| 15 |
T t; |
| 16 |
return t; |
| 17 |
} |