Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-ctor12.C

raw
1 // PR c++/55753
2 // { dg-do compile { target c++11 } }
3
4 template <typename Tp>
5 struct C {
6 C() = default;
7 constexpr C(const Tp& r) { }
8 };
9
10 template <typename Tp>
11 struct B {
12 B() {
13 C<double> cpl = C<double>((true ? 1.0 : C<double>()));
14 }
15 };