-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/11/11 13:52, Jakub Jelinek wrote: > Hi! > > On the following testcase build_unary_op ICEs, because > the element type of the array variable (which is TREE_READONLY) > unexpectedly is not TYPE_READONLY. > The problem seems to come from store_init_value, which replaces > the type of the variable with build_distinct_type_copy (TYPE_MAIN_VARIANT > (type)); > on which it sets TYPE_DOMAIN. The following patch restores the > quals back. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.6? > > 2011-04-11 Jakub Jelinek <ja...@redhat.com> > > PR c/48517 > * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to > qualified type. > > * gcc.dg/pr48517.c: New test. OK. jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNpHQcAAoJEBRtltQi2kC7G00H/0YVn3lAw5tf3wDfTwBK8G1U Jpy7iroBBgkBb/X+DSG1PRbWmxy7hsbsQvqsNI5iYVq/nbSxl7BFPxP1RxOqo07G AbFtnLlgOuAG2XfhuN/oUc4SwiU23JyX8zBhYXZEHqho6oFDTIxUOMh4+LYM92ll vPZoHprQZkS3/HsQu6BzZoEyf8mmUh5D2DMU6X3kW4Lb3d1+URdcq6xIzTXRMjga 79ZRyL/WozaTjdtw9dr1mIqhlLs2V6bOydItRl41xQTALkq52iqIYT/3+YvYuiLR z4MGT4gGO4JmE6a9K+jVVxjjtMrgiJP20l9C2/UjWiqSyuaJAHcxMrakX46gB0Q= =4Uv+ -----END PGP SIGNATURE-----