Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor12.C
blob: 42ca30a38ce10b11720312db3e6175e2c6136b93 [
file
] [
log
] [
blame
]
// PR c++/55753
// { dg-do compile { target c++11 } }
template
<
typename
Tp
>
struct
C
{
C
()
=
default
;
constexpr
C
(
const
Tp
&
r
)
{
}
};
template
<
typename
Tp
>
struct
B
{
B
()
{
C
<double>
cpl
=
C
<double>
((
true
?
1.0
:
C
<double>
()));
}
};