| 1 |
// Origin PR c++/45625 |
| 2 |
// { dg-do compile } |
| 3 |
|
| 4 |
struct Outer |
| 5 |
{ |
| 6 |
static const int value = 1 ; |
| 7 |
|
| 8 |
template< int value > |
| 9 |
struct Inner |
| 10 |
{ |
| 11 |
static const int* |
| 12 |
get_value() |
| 13 |
{ |
| 14 |
return &value ;// { dg-error "lvalue required" } |
| 15 |
} |
| 16 |
}; |
| 17 |
}; |
| 18 |
|
| 19 |
template class Outer::Inner<2>; |