]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-targ.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-targ.C
CommitLineData
4b2e63de 1// { dg-do compile { target c++11 } }
fa2200cb
JM
2
3struct A
4{
5 constexpr operator double() { return 1.0; }
6};
7
8template <int I>
9struct B
10{ };
11
12constexpr A a { };
ed4f2c00 13B<a> b; // { dg-error "template argument|converted constant|could not convert" }
This page took 5.643872 seconds and 5 git commands to generate.