Commit 347b5292 by Brendan Kehoe Committed by Brendan Kehoe

decl.c (grokparms): Check that INIT isn't an error_mark_node before giving error…

decl.c (grokparms): Check that INIT isn't an error_mark_node before giving error about invalid type...

        * decl.c (grokparms): Check that INIT isn't an error_mark_node
        before giving error about invalid type for default arg.

From-SVN: r20415
parent 2682eae9
1998-06-10 Brendan Kehoe <brendan@cygnus.com>
* decl.c (grokparms): Check that INIT isn't an error_mark_node
before giving error about invalid type for default arg.
1998-06-10 Jason Merrill <jason@yorick.cygnus.com>
* call.c (build_method_call): Fix thinko.
......
......@@ -10585,6 +10585,7 @@ grokparms (first_parm, funcdef_flag)
else
init = require_instantiated_type (type, init, integer_zero_node);
if (! processing_template_decl
&& init != error_mark_node
&& TREE_CODE (init) != DEFAULT_ARG
&& ! can_convert_arg (type, TREE_TYPE (init), init))
cp_pedwarn ("invalid type `%T' for default argument to `%#D'",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment