cp-tree.h (SCALAR_TYPE_P): New macro.
authorMark Mitchell <mark@codesourcery.com>
Mon, 24 Jun 2002 19:18:43 +0000 (19:18 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 24 Jun 2002 19:18:43 +0000 (19:18 +0000)
commit5f261ba970a894543b1c8c30f71c7eb2a234ba93
treebe46d82b47945fa6f5b787b66f752af4d7711a6b
parent87912be720118115eded3786b807a34cfb0f0a81
cp-tree.h (SCALAR_TYPE_P): New macro.

* cp-tree.h (SCALAR_TYPE_P): New macro.
(check_for_out_of_scope_variable): New function.
(at_class_scope_p): Likewise.
(finish_fname): Likewise.
* class.c (finish_struct): Use at_function_scope_p.
* decl.c (check_for_out_of_scope_variable): New function, split
out from do_identifier.
(finish_enum): Use at_function_scope_p.
* lex.c (do_identifier): Use check_for_out_of_scope_variable.
* parse.y (VAR_FUNC_NAME): Give it <ttype>.  Use finish_fname.
(primary): Use at_function_scope_p.
* search.c (at_class_scope_p): New function.
* semantics.c (finish_fname): Likewise.
(check_multiple_declarators): Use at_function_scope_p.

From-SVN: r54962
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/lex.c
gcc/cp/parse.y
gcc/cp/search.c
gcc/cp/semantics.c