This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Backport PR c++/31338 to 4.2 branch
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 4 Jul 2007 10:17:09 -0700
- Subject: PATCH: Backport PR c++/31338 to 4.2 branch
- Reply-to: mark at codesourcery dot com
I have now backported the patch for PR c++/31338 to the 4.2 branch.
The patch was identical to that committed to the mainline; here is the
ChangeLog.
2007-07-03 Mark Mitchell <mark@codesourcery.com>
PR c++/31388
* cp-tree.h (ARITHMETIC_TYPE): Include COMPLEX_TYPE.
* typeck.c (type_after_usual_arithmetic_conversions): Adjust, as
COMPLEX_TYPE is now an ARITHMETIC_TYPE.
* init.c (build_zero_init): Adjust, as
COMPLEX_TYPE is now a SCALAR_TYPE.
* typeck2.c (digest_init): Allow brace-enclosed initializers for
COMPLEX_TYPE, even though that is now a SCALAR_TYPE.
2007-07-03 Mark Mitchell <mark@codesourcery.com>
PR c++/31338
* g++.dg/ext/complex2.C: New test.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713