This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32970] [4.3 Regression] C++ frontend can not handle vector pointer constant parameter
- From: "saliu at de dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2007 10:13:10 -0000
- Subject: [Bug c++/32970] [4.3 Regression] C++ frontend can not handle vector pointer constant parameter
- References: <bug-32970-14935@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from saliu at de dot ibm dot com 2007-08-10 10:13 -------
This patch can fix the problem:
Index: gcc/tree.c
===================================================================
--- gcc.orig/tree.c
+++ gcc/tree.c
@@ -7609,8 +7609,11 @@ reconstruct_complex_type (tree type, tre
else
return bottom;
- TYPE_READONLY (outer) = TYPE_READONLY (type);
- TYPE_VOLATILE (outer) = TYPE_VOLATILE (type);
+ if (TYPE_READONLY (type))
+ build_qualified_type(outer, TYPE_QUAL_CONST);
+
+ if (TYPE_VOLATILE (type))
+ build_qualified_type(outer, TYPE_QUAL_VOLATILE);
return outer;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32970