diff options
author | Mark Mitchell <mark@markmitchell.com> | 1998-07-31 15:01:21 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-07-31 15:01:21 +0000 |
commit | 39c01e4c532100e8e5239591146eec1b20593547 (patch) | |
tree | cde82810bdca623c7d1ae0769916edf5170cd355 /gcc/intl.c | |
parent | 5f97de0ac982f8439ca78db6652fb722fe4fafe9 (diff) | |
download | gcc-39c01e4c532100e8e5239591146eec1b20593547.zip gcc-39c01e4c532100e8e5239591146eec1b20593547.tar.gz gcc-39c01e4c532100e8e5239591146eec1b20593547.tar.bz2 |
cp-tree.h (PROCESSING_REAL_TEMPLATE_DECL_P): New macro.
1998-07-31 Mark Mitchell <mark@markmitchell.com>
* cp-tree.h (PROCESSING_REAL_TEMPLATE_DECL_P): New macro.
(maybe_check_template_type): New function.
* decl.c (maybe_process_template_type_declaration): New function,
split out from pushtag Call maybe_check_template_type.
(pushtag): Use it. Use PROCESSING_REAL_TEMPLATE_DECL_P.
(xref_tag): Use PROCESSING_REAL_TEMPLATE_DECL_P.
* friend.c (do_friend): Use PROCESSING_REAL_TEMPLATE_DECL_P.
* pt.c (template_class_depth_real): Generalization of ...
(template_class_depth): Use it.
(register_specialization): Use duplicate_decls for duplicate
declarations of specializations.
(maybe_check_template_type): New function.
(push_template_decl_real): Fix comment.
(convert_nontype_argument): Likewise.
(lookup_template_class): Likewise. Avoid an infinite loop on
erroneous code.
(tsubst_friend_function): Fix comment.
(tsubst, case FUNCTION_DECL): Deal with a DECL_TI_TEMPLATE that is
an IDENTIFIER_NODE.
* semantics.c (begin_function_definition): Use
reset_specialization to note that template headers don't apply
directly to declarations after the opening curly for a function.
From-SVN: r21505
Diffstat (limited to 'gcc/intl.c')
0 files changed, 0 insertions, 0 deletions