[Bug fortran/93486] ICE on valid with nested submodules and long submodule names

2020-03-02 Thread abensonca at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93486

Andrew Benson  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Andrew Benson  ---
Fixed by r10-6976-gf3c276aec26d9e406cc4bbf0e18b1105df63f0ee

[Bug fortran/93486] ICE on valid with nested submodules and long submodule names

2020-03-02 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93486

--- Comment #4 from CVS Commits  ---
The master branch has been updated by Andrew Benson :

https://gcc.gnu.org/g:f3c276aec26d9e406cc4bbf0e18b1105df63f0ee

commit r10-6976-gf3c276aec26d9e406cc4bbf0e18b1105df63f0ee
Author: Andrew Benson 
Date:   Mon Mar 2 17:28:35 2020 +

Ensure sufficient size of variables used for module+submodule names.

PR fortran/93486
* module.c: Increase size of variables used to read module names
when loading interfaces from module files to permit cases where
the name is the concatenation of a module and submodule name.
* gfortran.dg/pr93486.f90: New test.

[Bug fortran/93486] ICE on valid with nested submodules and long submodule names

2020-01-29 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93486

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2020-01-29
 CC||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Martin Liška  ---
Confirmed. Just for the record, it started with r6-2289-g3d5dc929f4077f3d.

[Bug fortran/93486] ICE on valid with nested submodules and long submodule names

2020-01-28 Thread abensonca at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93486

--- Comment #2 from Andrew Benson  ---
The problem is caused when loading (generic or operator) interfaces from a
module file. The module name can include the submodule name, so a size of
2*GFC_MAX_SYMBOL_LEN+2 is required to read this in.

The attached patch fixes this problem.

[Bug fortran/93486] ICE on valid with nested submodules and long submodule names

2020-01-28 Thread abensonca at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93486

--- Comment #1 from Andrew Benson  ---
Created attachment 47725
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47725=edit
Proposed patch