PR c++/70528 * class.c (type_has_constexpr_default_constructor): Return true for an implicitly declared constructor. From-SVN: r235002
16 lines
249 B
C
16 lines
249 B
C
// 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>()));
|
|
}
|
|
};
|