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 middle-end/16809] [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers


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


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