OSDN Git Service

Fix PR# in ChangeLog:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Apr 2007 02:37:20 +0000 (02:37 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Apr 2007 02:37:20 +0000 (02:37 +0000)
PR c++/31338
* 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.

PR c++/31338
* g++.dg/ext/complex2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124173 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/testsuite/ChangeLog

index 3846c0b..cb9840f 100644 (file)
@@ -1,6 +1,6 @@
 2007-04-24  Mark Mitchell  <mark@codesourcery.com>
 
-       PR c++/31388
+       PR c++/31338
        * cp-tree.h (ARITHMETIC_TYPE): Include COMPLEX_TYPE.
        * typeck.c (type_after_usual_arithmetic_conversions): Adjust, as
        COMPLEX_TYPE is now an ARITHMETIC_TYPE.
index c7f3dbb..04a98ad 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-24  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/31338
+       * g++.dg/ext/complex2.C: New test.
+
 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
 
        * g++.dg/ext/has_nothrow_assign.C: Adjust per N2255.