| 1 |
// PR c++/105809 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<typename ss> void hh() { ss t; } |
| 5 |
|
| 6 |
template<int> |
| 7 |
int f(void) |
| 8 |
{ |
| 9 |
constexpr char const* cc = __func__; |
| 10 |
struct j{ char const* kk=cc; }; |
| 11 |
hh<j>(); |
| 12 |
return 0; |
| 13 |
} |
| 14 |
|
| 15 |
int t = f<1>(); |