OSDN Git Service

* cp-tree.h (PUSH_GLOBAL): New macro.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jan 1999 21:16:22 +0000 (21:16 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jan 1999 21:16:22 +0000 (21:16 +0000)
commit91bbfe2a9b41685a1a43c4c61de4c5c7dd50d295
treee6f14953b9b72129c669c461010c89a23823f94b
parent928a6bdc7cc5d5207afb28e91100986f0131dde8
* cp-tree.h (PUSH_GLOBAL): New macro.
(PUSH_LOCAL): Likewise.
(PUSH_USING): Likewise.
(namespace_bindings_p): Declare.
(push_overloaded_decl): Likewise.
* decl.c (push_overloaded_decl): Don't make it static.  Check for
illegal declarations after using declarations here.
(namespace_bindings_p): Likewise.
(duplicate_decls): Don't consider declarations from different
namespaces to be the same.
(pushdecl): Use symbolic PUSH_ constants in calls to
push_overloaded_decl.
(push_overloaded_decl_1): Likewise.
* decl2.c (validate_nonmember_using_decl): Tweak `std' handling.
(do_nonmember_using_decl): Check for illegal using declarations
after ordinary declarations here.
(do_local_using_decl): Call pushdecl to insert declarations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24812 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/tree.c
gcc/testsuite/g++.old-deja/g++.ns/overload4.C
gcc/testsuite/g++.old-deja/g++.ns/overload5.C
gcc/testsuite/g++.old-deja/g++.ns/using12.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/array3.C [new file with mode: 0644]