Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array12.C
blob: 347ee54f06f208c87e4244535a7b1f7530ef14bf [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
int
ar
[
3
];
};
int
main
()
{
constexpr
A a1
=
{
0
,
a1
.
ar
[
0
]
};
constexpr
A a2
=
{
a2
.
ar
[
0
]
};
// { dg-error "uninitialized" }
}