]> git.ipfire.org Git - thirdparty/gcc.git/commit
cp-tree.h (PUSH_GLOBAL): New macro.
authorMark Mitchell <mark@markmitchell.com>
Thu, 21 Jan 1999 21:16:22 +0000 (21:16 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 21 Jan 1999 21:16:22 +0000 (21:16 +0000)
commit7bdbfa05dba783697d330f283a8427002667408f
treee6f14953b9b72129c669c461010c89a23823f94b
parent15914757c6d0717225a6d87035cb524fb06c5ac9
cp-tree.h (PUSH_GLOBAL): New macro.

* 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.

From-SVN: r24812
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]