Re: [Patch, Fortran] PR 51758 - fix ICE with null() in elemental procedures

2012-07-14 Thread Mikael Morin
On 09/01/2012 15:45, Tobias Burnus wrote: > On 01/09/2012 03:34 PM, Mikael Morin wrote: >> The issue is that the code handling NULL() doesn't consume the gfc_ss >> struct created for it. Your fix, which advances to the next one anyway >> would work just well, but I think it is slightly cleaner to n

Re: [Patch, Fortran] PR 51758 - fix ICE with null() in elemental procedures

2012-01-09 Thread Mikael Morin
On 09.01.2012 15:45, Tobias Burnus wrote: On 01/09/2012 03:34 PM, Mikael Morin wrote: The issue is that the code handling NULL() doesn't consume the gfc_ss struct created for it. Your fix, which advances to the next one anyway would work just well, but I think it is slightly cleaner to not creat

Re: [Patch, Fortran] PR 51758 - fix ICE with null() in elemental procedures

2012-01-09 Thread Tobias Burnus
On 01/09/2012 03:34 PM, Mikael Morin wrote: The issue is that the code handling NULL() doesn't consume the gfc_ss struct created for it. Your fix, which advances to the next one anyway would work just well, but I think it is slightly cleaner to not create the struct in the first place, as it is

Re: [Patch, Fortran] PR 51758 - fix ICE with null() in elemental procedures

2012-01-09 Thread Mikael Morin
Sorry Tobias, I was about to post a patch about this when I saw your message. The issue is that the code handling NULL() doesn't consume the gfc_ss struct created for it. Your fix, which advances to the next one anyway would work just well, but I think it is slightly cleaner to not create the

[Patch, Fortran] PR 51758 - fix ICE with null() in elemental procedures

2012-01-09 Thread Tobias Burnus
The issue was discovered when looking at the optional + elemental + scalarizer issue (PR 50981, 4.4-4.7 regression). However, the example of this PR never worked. Passing null() to denote an absent argument (for nonallocatable/nonpointer dummies) is a Fortran 2008 / GCC 4.6 feature. Build and