Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nontype1.C
blob: 29dff3639745940efe79f01b92a592ed6df13519 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
L
{
constexpr
operator
int
()
const
{
return
0
;
}
};
constexpr
L
LVar
{};
template
<
const
L
&>
int
*
f
()
{
return
0
;
}
template
<int>
char
*
f
();
auto
r
=
f
<
LVar
>();
// { dg-error "ambiguous" }