cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.

* cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
	* decl.c (make_unbound_class_template): Adjust.  Check for tf_error.
	* pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.

From-SVN: r60407
This commit is contained in:
Kriang Lerdsuwanakij 2002-12-22 16:01:27 +00:00 committed by Kriang Lerdsuwanakij
parent a7612343f3
commit 4f09be9143
4 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2002-12-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
* decl.c (make_unbound_class_template): Adjust. Check for tf_error.
* pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.
2002-12-20 Kazu Hirata <kazu@cs.umass.edu> 2002-12-20 Kazu Hirata <kazu@cs.umass.edu>
* ChangeLog: Fix a typo. * ChangeLog: Fix a typo.

View File

@ -3699,7 +3699,7 @@ extern void set_namespace_binding PARAMS ((tree, tree, tree));
extern tree lookup_namespace_name PARAMS ((tree, tree)); extern tree lookup_namespace_name PARAMS ((tree, tree));
extern tree build_typename_type PARAMS ((tree, tree, tree, tree)); extern tree build_typename_type PARAMS ((tree, tree, tree, tree));
extern tree make_typename_type PARAMS ((tree, tree, tsubst_flags_t)); extern tree make_typename_type PARAMS ((tree, tree, tsubst_flags_t));
extern tree make_unbound_class_template PARAMS ((tree, tree, int)); extern tree make_unbound_class_template PARAMS ((tree, tree, tsubst_flags_t));
extern tree lookup_name_nonclass PARAMS ((tree)); extern tree lookup_name_nonclass PARAMS ((tree));
extern tree lookup_function_nonclass PARAMS ((tree, tree)); extern tree lookup_function_nonclass PARAMS ((tree, tree));
extern tree lookup_name PARAMS ((tree, int)); extern tree lookup_name PARAMS ((tree, int));

View File

@ -5759,7 +5759,7 @@ make_typename_type (context, name, complain)
tree tree
make_unbound_class_template (context, name, complain) make_unbound_class_template (context, name, complain)
tree context, name; tree context, name;
int complain; tsubst_flags_t complain;
{ {
tree t; tree t;
tree d; tree d;
@ -5781,7 +5781,7 @@ make_unbound_class_template (context, name, complain)
if (!tmpl || !DECL_CLASS_TEMPLATE_P (tmpl)) if (!tmpl || !DECL_CLASS_TEMPLATE_P (tmpl))
{ {
if (complain) if (complain & tf_error)
error ("no class template named `%#T' in `%#T'", name, context); error ("no class template named `%#T' in `%#T'", name, context);
return error_mark_node; return error_mark_node;
} }

View File

@ -6800,7 +6800,7 @@ tsubst (t, args, complain, in_decl)
} }
if (TREE_CODE (type) == REFERENCE_TYPE) if (TREE_CODE (type) == REFERENCE_TYPE)
{ {
if (complain) if (complain & tf_error)
error ("creating pointer to member reference type `%T'", type); error ("creating pointer to member reference type `%T'", type);
return error_mark_node; return error_mark_node;