]> gcc.gnu.org Git - gcc.git/commit
re PR c++/29039 (implicitly defined constructor for class with reference member)
authorMark Mitchell <mark@codesourcery.com>
Tue, 17 Oct 2006 22:35:29 +0000 (22:35 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 17 Oct 2006 22:35:29 +0000 (22:35 +0000)
commitc7b0e0273ea01ccc3a8b8065944f89b6d619e787
tree69dd14ebdbf552a0333a15bf8a7c239e37f2ec70
parent05b22df961070e926ac6bf4a8a114c5d5b1745bc
re PR c++/29039 (implicitly defined constructor for class with reference member)

PR c++/29039
* typeck2.c (build_functional_cast): Don't zero-initialize
non-PODs; instead, call their constructors.
* method.c (synthesize_method): Always build mem-initializers, if
we're synthesizing the default constructor.
PR c++/29039
* g++.dg/init/ctor8.C: New test.

From-SVN: r117834
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/ctor8.C [new file with mode: 0644]
This page took 0.611118 seconds and 5 git commands to generate.