[Patch, fortran, v2] PR fortran/96728 - Fatal Error: Reading module inquiry functions on assumed-rank
José Rui Faustino de Sousa
jrfsousa@gmail.com
Thu Aug 20 22:57:25 GMT 2020
Hi all!
Exactly the same thing, only actually including the patch this time.
Sorry for the mishap.
Thank you very much.
Best regards,
José Rui
On 20/08/20 19:33, José Rui Faustino de Sousa wrote:
> Hi all!
>
> Proposed patch to PR96728 - Fatal Error: Reading module inquiry
> functions on assumed-rank.
>
> Patch tested only on x86_64-pc-linux-gnu.
>
> The rank of the argument to specification functions gets written when
> writing the module file, but, since the value will be negative for
> assumed-rank arrays, the reading the module will fail.
>
> So the patch adds code to handle signed integers.
>
> Thank you very much.
>
> Best regards,
> José Rui
>
>
> 2020-8-20 José Rui Faustino de Sousa <jrfsousa@gmail.com>
>
> PR fortran/96728
> * module.c (module_peek_char): Peek ahead function.
> (parse_integer): Add code for parsing signed integers.
> (parse_atom): Add code to handle signed integers.
> (peek_atom): Add code to handle signed integers.
>
> 2020-8-20 José Rui Faustino de Sousa <jrfsousa@gmail.com>
>
> PR fortran/96728
> * PR96728.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR96728.patch
Type: text/x-patch
Size: 2439 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200820/58cb7cf1/attachment.bin>
More information about the Gcc-patches
mailing list