pt.c (determine_specialization): Just return an error_mark_node.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 22 May 1998 03:32:43 +0000 (03:32 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 May 1998 03:32:43 +0000 (23:32 -0400)
commit27fafc8de13d41577b731f61571924eed3c5a3e0
tree2733b8b284901fd46e9746d2ac5a060d97c860d7
parent911c3b7d7cf7c25f2b3f8ee1d19ba88fc21bac17
pt.c (determine_specialization): Just return an error_mark_node.

* pt.c (determine_specialization): Just return an error_mark_node.
Also print the decl we want in error messages.  If we complain,
return error_mark_node.
(tsubst_friend_function): Set lineno and input_filename so
error messages will be useful.
(instantiate_template): Just return an error_mark_node.
* pt.c (print_template_context): Add new argument.
(maybe_print_template_context): New fn.
(push_tinst_level): Increment tinst_level_tick.
(pop_tinst_level): Likewise.
* errfn.c (cp_thing): Call maybe_print_template_context.  Use
xrealloc instead of xmalloc.
* typeck.c (build_unary_op, CONVERT_EXPR): Propagate TREE_CONSTANT.

From-SVN: r19946
gcc/cp/ChangeLog
gcc/cp/errfn.c
gcc/cp/pt.c
gcc/cp/typeck.c