]>
Commit | Line | Data |
---|---|---|
4b2e63de | 1 | // { dg-do compile { target c++11 } } |
fa2200cb JM |
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 { }; | |
ed4f2c00 | 13 | B<a> b; // { dg-error "template argument|converted constant|could not convert" } |