Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-initlist6.C
blob: 8c344c0b28f88a118f70b2f4df90bfa46c33849b [
file
] [
log
] [
blame
]
// PR c++/55419
// { dg-do compile { target c++11 } }
struct
P
{
P
()
=
default
;
explicit
constexpr
P
(
int
x
)
:
p
(
x
)
{}
int
p
;
};
struct
Q
{
constexpr
Q
()
:
q
(
0x7f
)
{}
int
q
;
};
struct
R
{
Q q
;
P p
;
};
void
foo
(
R
*
x
)
{
*
x
=
{};
}