/cp
commit77448b2fb40f56511145982f798c368f902bafeb
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Oct 2013 21:41:19 +0000 (6 21:41 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Oct 2013 21:41:19 +0000 (6 21:41 +0000)
tree4963ba028981963fff09851c5561e64cc473b0b3
parent96f22277dec96894381ec19337dc1a20d5119dc8
/cp
2013-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58126
* class.c (check_bases): Propagate CLASSTYPE_READONLY_FIELDS_NEED_INIT
and CLASSTYPE_REF_FIELDS_NEED_INIT from bases to derived.
* init.c (diagnose_uninitialized_cst_or_ref_member_1): Extend error
messages about uninitialized const and references members to mention
the base class.

/testsuite
2013-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58126
* g++.dg/init/uninitialized1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203232 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/uninitialized1.C [new file with mode: 0644]