This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21210] [4.0/4.1/4.2 Regression] Trouble with __complex__ types default construction
- From: "sayle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2006 18:55:05 -0000
- Subject: [Bug c++/21210] [4.0/4.1/4.2 Regression] Trouble with __complex__ types default construction
- References: <bug-21210-3328@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from sayle at gcc dot gnu dot org 2006-06-12 18:55 -------
Subject: Bug 21210
Author: sayle
Date: Mon Jun 12 18:50:22 2006
New Revision: 114573
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114573
Log:
PR c++/21210
* typeck2.c (build_functional_cast): Use cp_convert to construct
non-aggregate initializers instead of the user-level build_c_cast.
* g++.dg/init/complex1.C: New test case.
Added:
trunk/gcc/testsuite/g++.dg/init/complex1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210