Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-targ.C
blob: 0f1f113f92fb5257e3e36d322381760e2af944f4 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
constexpr
operator
double
()
{
return
1.0
;
}
};
template
<
int
I
>
struct
B
{
};
constexpr
A a
{
};
B
<a>
b
;
// { dg-error "template argument|converted constant|could not convert" }