Commit 3cf0ca23 by Jason Merrill Committed by Jason Merrill

tree.c (build_aggr_init_expr): Always return error_mark_node on abstract violation.

	* tree.c (build_aggr_init_expr): Always return error_mark_node
	on abstract violation.

From-SVN: r172144
parent 362115a9
2011-04-07 Jason Merrill <jason@redhat.com> 2011-04-07 Jason Merrill <jason@redhat.com>
* tree.c (build_aggr_init_expr): Always return error_mark_node
on abstract violation.
PR c++/48450 PR c++/48450
* tree.c (build_cplus_new, build_aggr_init_expr): Take complain. * tree.c (build_cplus_new, build_aggr_init_expr): Take complain.
(bot_manip): Adjust. (bot_manip): Adjust.
......
...@@ -382,8 +382,7 @@ build_aggr_init_expr (tree type, tree init, tsubst_flags_t complain) ...@@ -382,8 +382,7 @@ build_aggr_init_expr (tree type, tree init, tsubst_flags_t complain)
/* Make sure that we're not trying to create an instance of an /* Make sure that we're not trying to create an instance of an
abstract class. */ abstract class. */
if (abstract_virtuals_error_sfinae (NULL_TREE, type, complain) if (abstract_virtuals_error_sfinae (NULL_TREE, type, complain))
&& !(complain & tf_error))
return error_mark_node; return error_mark_node;
if (TREE_CODE (init) == CALL_EXPR) if (TREE_CODE (init) == CALL_EXPR)
......
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