Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ref5.C
blob: 230510c4c29f874e89652dba7cb5946fdc743e2e [
file
] [
log
] [
blame
]
// PR c++/50473
// { dg-do compile { target c++11 } }
constexpr
int
f
()
{
return
1
;
}
template
<
class
T
>
struct
test
{
static
constexpr
const
auto
&
value
=
f
();
int
a
[
value
];
};
test
<int>
t
;