[PATCH] PR c++/43951
Fabien CHÊNE
fabien.chene@gmail.com
Fri May 7 13:17:00 GMT 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43951.patch
Type: application/octet-stream
Size: 6480 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100507/c19f111e/attachment.obj>
More information about the Gcc-patches
mailing list