2011/5/22 Jason Merrill <ja...@redhat.com>: > I think you also need something to avoid returning error_mark_node from > build_new_1.
Indeed. I have also added two testcases to check sfinae on 'new T', with and without -fpermissive, which leads to a different result. Tested x86_64-unknown-linux-gnu. OK for 4.6 ? I would like to add the testcase pr25811-3.C to Trunk, is it OK ? gcc/cp/ChangeLog: 2011-05-25 Fabien Chêne <fab...@gcc.gnu.org> * init.c (diagnose_uninitialized_cst_or_ref_member_1): Use permerror instead of error, adjust the error count. gcc/testsuite/ChangeLog: 2011-05-25 Fabien Chêne <fab...@gcc.gnu.org> * g++.dg/init/pr25811-2.C: New. * g++.dg/init/pr25811-3.C: New. * g++.dg/init/pr25811-4.C: New. -- Fabien
perm_cst_ref_diag.patch
Description: Binary data