------- Additional Comments From dberlin at gcc dot gnu dot org 2005-07-17
19:17 -------
Subject: Re: New: [4.1 Regression] ICE with
static promotion
On Sun, 2005-07-17 at 19:13 +0000, pinskia at gcc dot gnu dot org wrote:
> Compile the following valid C99 code at -O3 and we get an ICE:
> struct f1
> {
> int i;
> };
> void g(int);
> static struct f1 *f2 = &(struct f1){1};
> int f(void)
> {
> g(f2->i);
> return f2->i;
> }
>
The gimplifier needs to split this into a new static temporary, there's
no way we can do something sane with ADDR_EXPR <CONSTRUCTOR>.
Please copy jason or diego :)
(and Kenny, since this is his pass)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22530