Re: [Patch, fortran] Fix PR fortran/50050 breakage: ICE on valid with null pointer initialization

2011-08-24 Thread Tobias Burnus
On 08/24/2011 12:01 AM, Mikael Morin wrote: this is an attempt to fix my recent breakage for PR50050. I forgot that shape can't always be known, and thus, that for some expressions, the shape field is a NULL pointer. Neither bootstraped, nor regression tested, but it is in progress. My machine

Re: [Patch, fortran] Fix PR fortran/50050 breakage: ICE on valid with null pointer initialization

2011-08-24 Thread Thomas Koenig
Hi Tobias, PPS: I am looking for someone to review my simple regression fix [4.3 to 4.7] at http://gcc.gnu.org/ml/fortran/2011-08/msg00186.html it *should* be safe - see last comment in the PR for a bit more context. That one is OK. Thanks! Thomas

[Patch, fortran] Fix PR fortran/50050 breakage: ICE on valid with null pointer initialization

2011-08-23 Thread Mikael Morin
Hello, this is an attempt to fix my recent breakage for PR50050. I forgot that shape can't always be known, and thus, that for some expressions, the shape field is a NULL pointer. This patch adds an early return in gfc_free_shape in the case shape is NULL. Then some external NULL shape checks

Re: [Patch, fortran] Fix PR fortran/50050 breakage: ICE on valid with null pointer initialization

2011-08-23 Thread Andrew Benson
Hi Mikael: this is an attempt to fix my recent breakage for PR50050. I forgot that shape can't always be known, and thus, that for some expressions, the shape field is a NULL pointer. This patch adds an early return in gfc_free_shape in the case shape is NULL. Then some external NULL shape