Fix PR45586 (type confusion ICEs), take 2

Michael Matz matz@suse.de
Tue Feb 15 17:02:00 GMT 2011


Hi,

On Mon, 14 Feb 2011, Dominique Dhumieres wrote:

> Michael,
> 
> With the patch take2, the test for pr47455 in comment #5
> ( http://gcc.gnu.org/bugzilla/attachment.cgi?id=23136 ) gives an ICE:
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
> 0x00000001000cd940 in gfc_finish_var_decl (decl=0x141ddc280, sym=0x141c20440) at ../../work/gcc/fortran/trans-decl.c:566
> 566	      && INTEGER_CST_P (DECL_SIZE_UNIT (decl))
> (gdb) bt
> #0  0x00000001000cd940 in gfc_finish_var_decl (decl=0x141ddc280, sym=0x141c20440) at ../../work/gcc/fortran/trans-decl.c:566
> #1  0x00000001000cc6d3 in gfc_get_symbol_decl (sym=0x141c20440) at ../../work/gcc/fortran/trans-decl.c:1288
> 
> This is not the case with the take 1.

I see.  The underlying reason is that the type I construct a copy of isn't 
yet layed out.  I'll fix that.


Ciao,
Michael.



More information about the Fortran mailing list