Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-targ.C
blob: b5171141f94f0964c23ccc3c3eb4535a287db8a8 [
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|invalid type" }