This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR c++/43951


2010/5/3 Jason Merrill <jason@redhat.com>:
> This patch will make it so that we fail to return error_mark_node when
> !(complain & tf_error).

Here is an updated patch. Tested x86_64/Linux.

gcc/testsuite/ChangeLog:

2010-05-07  Fabien Chêne  <fabien.chene@gmail.com>
	PR c++/43951
	* g++.dg/init/new29.C: New.

gcc/cp/ChangeLog:

2010-05-07  Fabien Chêne  <fabien.chene@gmail.com>
	PR c++/43951
	* init.c (diagnose_uninitialized_cst_or_ref_member_1): Returns the
	error count. Emit errors only if compain is true.
	(build_new_1): Do not return error_mark_node if
	diagnose_uninitialized_cst_or_ref_member_1 does not diagnose any
	errors. Delay the check for user-provided constructor.
	(perform_member_init): Adjust.
	* cp-tree.h (diagnose_uninitialized_cst_or_ref_member): Change the
	prototype.

-- 
Fab

Attachment: pr43951.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]