[Bug middle-end/16809] [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers

bangerth at ices dot utexas dot edu gcc-bugzilla@gcc.gnu.org
Wed Jul 28 21:52:00 GMT 2004


------- Additional Comments From bangerth at ices dot utexas dot edu  2004-07-28 21:52 -------
Subject: Re:  [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers


> Before we errored:
> input.cc: In function `int main()':
> input.cc:3: error: initializer for scalar variable requires one element
>
> So this is a regression no matter what, either we are ICEing when we should
> not be or we are accepting invalid code when we should not be.

My naive understanding is that we should accept this. We initialize a pointer 
to int with an array of two integers. The array should simply decay to a 
pointer. icc8 thinks the same, btw. I'm sure JSM can help us here, though.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                               www: http://www.ices.utexas.edu/~bangerth/



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16809



More information about the Gcc-bugs mailing list