This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16809] [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers
- From: "bangerth at ices dot utexas dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jul 2004 21:52:17 -0000
- Subject: [Bug middle-end/16809] [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers
- References: <20040728213311.16809.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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