Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-79681-1.C
blob: 000afd80e04e7cc7d49166d1eb1b3b515f55608b [
file
] [
log
] [
blame
]
// PR c++/79681
// { dg-do compile { target c++14 } }
// { dg-options "-O2" }
struct
A
{
int
i
:
4
;
};
constexpr
bool
foo
()
{
A x
[]
=
{
1
};
return
x
[
0
].
i
;
}
static_assert
(
foo
(),
""
);