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