Hi,

As discussed off-list with Jason, it would be better to use permerror
instead of error when diagnosing uninitialized const or reference
members. At least for 4.6.
That would be usefull to provide a transition for invalid code that
exploits the following accept-invalids: PR 25811, PR 43719, PR 44086.
I have changed error to permerror only for the cases where it was
needed for the PR listed above.

OK for the 4.6 branch ?

gcc/cp/ChangeLog:

2011-05-21  Fabien Chêne  <fab...@gcc.gnu.org>
        * init.c (diagnose_uninitialized_cst_or_ref_member_1): Use
        permerror instead of error.

gcc/testsuite/ChangeLog:

2011-05-21  Fabien Chêne  <fab...@gcc.gnu.org>
        * g++.dg/init/pr25811-2.C: New.

-- 
Fabien

Attachment: perm_cst_ref_diag.patch
Description: Binary data

Reply via email to