Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
hidden-var1.C
blob: 6be32b581b21bccbb60ff13f4875f709bca8c7dc [
file
] [
log
] [
blame
]
// Origin PR c++/45625
// { dg-do compile }
struct
Outer
{
static
const
int
value
=
1
;
template
<
int
value
>
struct
Inner
{
static
const
int
*
get_value
()
{
return
&
value
;
// { dg-error "lvalue required" }
}
};
};
template
class
Outer
::
Inner
<
2
>;