Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 struct A
4 {
5 constexpr operator double() { return 1.0; }
6 };
7
8 template <int I>
9 struct B
10 { };
11
12 constexpr A a { };
13 B<a> b; // { dg-error "template argument|converted constant|could not convert" }