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  <jrfso...@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  <jrfso...@gmail.com>

 PR fortran/96728
 * PR96728.f90: New test.
  • [Patch, fortran] PR fortran/96... José Rui Faustino de Sousa via Gcc-patches

Reply via email to