re PR c++/16224 (internal compiler error: in write_unscoped_name (template/namespace))
authorMark Mitchell <mark@codesourcery.com>
Mon, 2 Aug 2004 06:25:36 +0000 (06:25 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 2 Aug 2004 06:25:36 +0000 (06:25 +0000)
commitb1cc95ce4c15c335589c5e0077c29c06c739e730
treec3d8dbd637ffc5e31556926ff4cb38f427e0d90a
parente9475fa369a6f1491864fc3f768a08573a4a5456
re PR c++/16224 (internal compiler error: in write_unscoped_name (template/namespace))

PR c++/16224
* name-lookup.c (decl_namespace): Remove.
(current_decl_namespace): Use decl_namespace_context instead of
decl_namespace.
(push_decl_namespace): Likewise.
(arg_assoc_class): Likewise.
(arg_assoc_type): Likewise.
* pt.c (check_specialization_namespace): New function.
(maybe_process_partial_specialization): Use it.
(register_specialization): Likewise.

PR c++/16224
* g++.dg/template/spec17.C: New test.
* g++.old-deja/g++.ns/template13.C: Remove XFAIL.
* g++.old-deja/g++.pt/lookup10.C: Add dg-error marker.

From-SVN: r85431
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/spec17.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.ns/template13.C
gcc/testsuite/g++.old-deja/g++.pt/lookup10.C