Summary: | [4.0 Regression] Trouble with __complex__ types default construction | ||
---|---|---|---|
Product: | gcc | Reporter: | Marcel Loose <loose> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, pinskia |
Priority: | P5 | Keywords: | rejects-valid |
Version: | 4.0.0 | ||
Target Milestone: | 4.0.4 | ||
Host: | Target: | ||
Build: | Known to work: | 3.4.0 4.2.0 4.1.2 | |
Known to fail: | 4.0.0 4.1.0 | Last reconfirmed: | 2006-02-01 04:35:11 |
Bug Depends on: | |||
Bug Blocks: | 30209 |
Description
Marcel Loose
2005-04-25 09:56:28 UTC
Actually, this has nothing to do with std::vector per se. This tiny snippet suffices to trigger the C++ front-end problem: typedef float __complex__ fcomplex; fcomplex cplx = fcomplex(); Confirmed, with Paolo's reduced testcase. See: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02777.html for additional analysis regarding this PR. : Search converges between 2004-10-19-161001-trunk (#599) and 2004-10-20-014001-trunk (#600). I am no longer working on this PR. There is considerable debate about what the right changes to make to the language are, so I am leaving this aside. Postponed until 4.0.2. I've removed the target milestone for this PR, as the discussion linked to shows that we don't know yet what we want the behavior to be. Will not be fixed in 4.1.1; adjust target milestone to 4.1.2. 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 Subject: Bug 21210 Author: sayle Date: Tue Jun 13 18:06:00 2006 New Revision: 114618 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114618 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: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/init/complex1.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/typeck2.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog Subject: Bug 21210 Author: sayle Date: Wed Jun 14 04:35:29 2006 New Revision: 114634 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114634 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: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/init/complex1.C Modified: branches/gcc-4_0-branch/gcc/cp/ChangeLog branches/gcc-4_0-branch/gcc/cp/typeck2.c branches/gcc-4_0-branch/gcc/testsuite/ChangeLog . |