re PR c++/32898 (Definition of variable N::i outside namespace N not rejected)
authorJakub Jelinek <jakub@redhat.com>
Thu, 23 Aug 2007 23:27:34 +0000 (01:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 23 Aug 2007 23:27:34 +0000 (01:27 +0200)
commit97dc8e5b5775cbb4aba4a7d7456844c15ad5d6b0
tree678f401110fa2b1d462caa8ea4f40e088161b2d8
parent9b21a3805360cf92d94c3767743f85f992f8293d
re PR c++/32898 (Definition of variable N::i outside namespace N not rejected)

PR c++/32898
* name-lookup.c (set_decl_namespace): lookup_qualified_name failure
is error_mark_node rather than NULL_TREE.
* pt.c (check_explicit_specialization): Likewise.

* g++.dg/lookup/ns3.C: New test.

From-SVN: r127749
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/ns3.C [new file with mode: 0644]