Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;