re PR c++/13659 (error: no matching function for call to)

PR c++/13659
* g++.dg/lookup/strong-using-3.C: New.
* g++.dg/lookup/using-10.C: New.

From-SVN: r75924
This commit is contained in:
Alexandre Oliva 2004-01-15 14:46:01 +00:00 committed by Alexandre Oliva
parent ed5f054faa
commit d905ed80d5
3 changed files with 46 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-01-15 Alexandre Oliva <aoliva@redhat.com>
PR c++/13659
* g++.dg/lookup/strong-using-3.C: New.
* g++.dg/lookup/using-10.C: New.
2004-01-15 Alexandre Oliva <aoliva@redhat.com>
PR c++/13594

View file

@ -0,0 +1,18 @@
// PR c++/13659
// { dg-do compile }
namespace foo {
template <class T> void f(T, T);
}
namespace bar {
using namespace foo __attribute__((strong));
template <class T> void f(T);
}
int main() {
// Make sure both declarations are brought in.
using bar::f;
f(1);
f(1, 1);
}

View file

@ -0,0 +1,22 @@
// PR c++/13659
// { dg-do compile }
namespace foo1 {
template <class T> void f(T);
}
namespace foo2 {
template <class T> void f(T, T);
}
namespace foo {
using namespace foo1;
using namespace foo2;
}
// Make sure we bring in both declarations.
using foo::f;
int main() {
f(1);
f(1, 1);
}