[Patch, Fortran] Fix PR37400 - wrong char len with implicit types

Tobias Burnus burnus@net-b.de
Mon Sep 8 07:37:00 GMT 2008


Paul Richard Thomas wrote:
>> I have no idea why it worked before, but the fix seems to be the
>> proper one. Do you think one should try to figure out why it was
>> working in older gfortrans?
>>     
> That would be reassuring; my intuition is that it should not have worked!
>   

That was a side effect of my Patch for 36476:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36476
"ICE: len=* CHARACTER array with separate PARAMETER statement"

Actually, I'm not sure whether it worked before: At least with 4.3 I
always got a segmentation fault (after all three lines were correctly
printed); though with some version of gfortran shortly before fixing
36476 it didn't gave a segmentation fault.

>> Build & regtested on x86-64-Linux.
>> OK for the trunk?
>>     
> Yes, indeed.  Thanks for the patch.
>   

Committed as Rev. 140100.

Tobias



More information about the Fortran mailing list