Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
koenig13.C
blob: 625a181f6214a7a529439e5a3c59a92dc518ed36 [
file
] [
log
] [
blame
]
// PR c++/42687
// DR 705
namespace
N
{
struct
S
{
};
void
f
(
const
S
&)
{
}
}
void
f
(
const
N
::
S
&)
{
}
int
main
()
{
N
::
S v
;
(
f
)(
v
);
// no ambiguity: ADL is prevented with (), only ::f is considered
}