re PR c++/43951 (Revision 158918 miscompiled 483.xalancbmk in SPEC CPU 2006)
authorFabien ChĂȘne <fabien.chene@gmail.com>
Fri, 7 May 2010 15:52:06 +0000 (15:52 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 7 May 2010 15:52:06 +0000 (11:52 -0400)
commit40bb78ad246919ee068382c3a2cdf6f299e412c9
tree509ac9f873d8887b78813e37442448aa6d8215b2
parent48cf395bdb30be10a283c3ac4d6217c322f39070
re PR c++/43951 (Revision 158918 miscompiled 483.xalancbmk in SPEC CPU 2006)

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.

From-SVN: r159158
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/new29.C [new file with mode: 0644]