cp-tree.h (lang_decl_flags): Add defined_in_class.
authorMark Mitchell <mark@markmitchell.com>
Fri, 6 Nov 1998 16:50:46 +0000 (16:50 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 6 Nov 1998 16:50:46 +0000 (16:50 +0000)
commit6ba89f8ecba5e27e4c847308cceaec857aaaa5cc
tree807068e3e7b12507ad2145dae78b50605cfdb525
parent955fc2e7df0f443cbf538a0ad2991e352f8ab1f6
cp-tree.h (lang_decl_flags): Add defined_in_class.

* cp-tree.h (lang_decl_flags): Add defined_in_class.  Decrease
size of dummy.
(DECL_DEFINED_IN_CLASS_P): New macro.
(TEMPLATE_PARMS_FOR_INLINE): Document.
(check_static_variable_definition): New function.
* decl.c (cp_finish_decl): Set DECL_DEFINED_IN_CLASS_P, if
appropriate.
(check_static_variable_definition): Split out from ...
(grokdeclarator): Here.
* pt.c (check_default_tmpl_args): New function, split out from ...
(push_template_decl_real): Here.
(instantiate_template): Fix comment.

From-SVN: r23549
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.pt/defarg6.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/defarg7.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/static5.C [new file with mode: 0644]