| 1 |
// PR c++/50837 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<class T> |
| 5 |
struct z |
| 6 |
{ |
| 7 |
static constexpr bool test_constexpr() |
| 8 |
{ |
| 9 |
return true; |
| 10 |
} |
| 11 |
|
| 12 |
static void test() |
| 13 |
{ |
| 14 |
static_assert(test_constexpr(), "test1"); |
| 15 |
} |
| 16 |
}; |
| 17 |
|
| 18 |
int main() |
| 19 |
{ |
| 20 |
z<int>::test(); |
| 21 |
} |