This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34917] [4.2/4.3 regression] ICE with const vector



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]