Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor13.C
blob: 299db88326834a8951ffc4f12e25f550ce9ed698 [
file
] [
log
] [
blame
]
// PR c++/55753
// { dg-do compile { target c++11 } }
struct
A
{
double
r
,
i
;
constexpr
A
(
double
r
=
0.0
,
double
i
=
0.0
):
r
(
r
),
i
(
i
)
{}
};
template
<
typename
Tp
>
struct
B
{
B
()
{
A
((
true
?
1.0
:
A
()));
}
};