[Bug fortran/103258] [12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114 since r12-4979-gee11be7f2d788e60

sandra at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 12 17:25:58 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103258

--- Comment #4 from sandra at gcc dot gnu.org ---
Created attachment 51980
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51980&action=edit
hacky patch

Attached patch has not been regression tested, but it does seem to fix the
original testcase, which now produces:

$ gfortran -c pr103258.f90
pr103258.f90:3:13:

    3 | character(n+m) :: c
      |             1
Error: Symbol 'm' at (1) has no IMPLICIT type
pr103258.f90:1:14:

    1 | subroutine s(n)
      |              1
Error: Symbol 'n' at (1) has no IMPLICIT type


More information about the Gcc-bugs mailing list