This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34917] [4.2/4.3 regression] ICE with const vector
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 09:49:30 -0000
- Subject: [Bug c++/34917] [4.2/4.3 regression] ICE with const vector
- References: <bug-34917-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2008-01-22 09:49 -------
Testing a fix.
--- tree.c.jj124 2008-01-22 10:46:20.000000000 +0100
+++ tree.c 2008-01-22 10:46:20.000000000 +0100
@@ -3735,6 +3735,8 @@ build_type_attribute_qual_variant (tree
ttype = build_qualified_type (ntype, quals);
}
+ else if (TYPE_QUALS (ttype) != quals)
+ ttype = build_qualified_type (ttype, quals);
return ttype;
}
build_type_attribute_qual_variant wasn't changing quals to the requested ones
if the attributes are equal. This seems to only make a difference for vectors,
as build_type_attribute_qual_variant is static in tree.c and only called
by build_type_attribute_variant which will have always equal quals and
make_vector_type.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-01-22 03:53:32 |2008-01-22 09:49:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34917