-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
On Mon, 11 Apr 2011, Jakub Jelinek wrote:
> 2011-04-11 Jakub Jelinek
>
> PR c/48517
> * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to
> qualified type.
>
> * gcc.dg/pr48517.c: New test.
OK, though I think the test would go better in gcc.c-torture/compile sinc
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
(