name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P, not IDENTIFIER_OPNAME_P.
* name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P, not IDENTIFIER_OPNAME_P. * g++.dg/template/using12.C: New test. From-SVN: r110546
This commit is contained in:
parent
e3e1fa678b
commit
82d6b0182a
4 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-02-03 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P,
|
||||
not IDENTIFIER_OPNAME_P.
|
||||
|
||||
2006-01-31 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/25342
|
||||
|
|
|
@ -2768,7 +2768,7 @@ do_class_using_decl (tree scope, tree name)
|
|||
|
||||
scope_dependent_p = dependent_type_p (scope);
|
||||
name_dependent_p = (scope_dependent_p
|
||||
|| (IDENTIFIER_OPNAME_P (name)
|
||||
|| (IDENTIFIER_TYPENAME_P (name)
|
||||
&& dependent_type_p (TREE_TYPE (name))));
|
||||
|
||||
bases_dependent_p = false;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2006-02-03 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* g++.dg/template/using12.C: New test.
|
||||
|
||||
2006-02-03 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* gcc.target/powerpc/pr25960.c: New test.
|
||||
|
|
7
gcc/testsuite/g++.dg/template/using12.C
Normal file
7
gcc/testsuite/g++.dg/template/using12.C
Normal file
|
@ -0,0 +1,7 @@
|
|||
struct A {
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct S : public A {
|
||||
using A::operator(); // { dg-error "no member" }
|
||||
};
|
Loading…
Add table
Reference in a new issue