Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
overload
/
ambig3.C
blob: 01d4cc632868892ba05f7c9ac37b6872ce14afe7 [
file
] [
log
] [
blame
]
// PR c++/77563
struct
A
{
A
(
int
)
{}
A
(
unsigned
)
{}
// Comment to make it work
explicit
A
(
long
)
{}
// Comment to make it work
};
void
f
(
A
)
{
}
int
main
()
{
f
(
2
);
f
(
3l
);
// { dg-error "ambiguous" }
}