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 jsm at polyomino dot org dot uk  2004-07-28 21:51 -------
Subject: Re:  New: [3.5 regression] ICE in gimplify_expr
 with initializer of arrays and pointers

On Wed, 28 Jul 2004, bangerth at dealii dot org wrote:

> Not quite sure about the validity of this code (we take the address 
> of a temporary -- I guess it should be valid, but undefined), but 
> this nasty error message that is ten times as long as the code in  
> question is not appropriate: 

The compound literal has automatic storage duration associated with the
enclosing block.  The code looks perfectly reasonable to me.

> --------------------- 
> typedef int I2[2]; 
> int main () { 
>   int *p = (I2) {1,2}; 
> } 
> --------------------- 



-- 


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]