Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
}