URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [lookup5.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
namespace A{
void f();
}
namespace B{
using namespace A;
void f(int); // { dg-error "" } referenced below
}
using namespace B;
void g()
{
::f(); // { dg-error "" } A::f is not found
}
using namespace A;
void g1()
{
::f(); // ok, it is found now
}