2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-targ.C
blob0f1f113f92fb5257e3e36d322381760e2af944f4
1 // { dg-do compile { target c++11 } }
3 struct A
5   constexpr operator double() { return 1.0; }
6 };
8 template <int I>
9 struct B
10 { };
12 constexpr A a { };
13 B<a> b;                  // { dg-error "template argument|converted constant|could not convert" }