[Patch] PR c++/29043

Fabien CHÊNE fabien.chene@gmail.com
Tue Apr 20 21:55:00 GMT 2010


Hello,

The following patch fixes PR c++/29043 -- again, an issue with
uninitialized const or reference members. The problem triggers when
there is a user-defined constructor, which doesn't initilialize a
field containing a const or a reference member.

Tested x86_64-unknown-linux-gnu, OK for trunk ?

gcc/testsuite/ChangeLog:

2010-04-20  Fabien Chêne  <fabien.chene@gmail.com>
	PR c++/29043
	* g++.dg/init/pr29043.C: New.

gcc/cp/ChangeLog:

2010-04-20  Fabien Chêne  <fabien.chene@gmail.com>
	PR c++/29043
	* init.c (perform_member_init): check for uninitialized const or
	reference members, including array types.

-- 
Fab
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr29043.patch
Type: application/octet-stream
Size: 1953 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100420/38286deb/attachment.obj>


More information about the Gcc-patches mailing list