public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103258] New: [12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114
@ 2021-11-15 18:22 gscfq@t-online.de
  2021-11-16  8:25 ` [Bug fortran/103258] [12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114 since r12-4979-gee11be7f2d788e60 marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2021-11-15 18:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103258
           Summary: [12 Regression] ICE in gfc_typenode_for_spec, at
                    fortran/trans-types.c:1114
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

This changed between 20211031 and 20211107 :


$ cat z1.f90
subroutine s(n)
implicit none
character(n+m) :: c
entry e(m)
end


$ gfortran-12-20211031 -c z1.f90
z1.f90:1:14:

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


$ gfortran-12-20211114 -c z1.f90
z1.f90:1:12:

    1 | subroutine s(n)
      |            1
internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1114
0x8d7590 gfc_typenode_for_spec(gfc_typespec*, int)
        ../../gcc/fortran/trans-types.c:1114
0x8d7796 gfc_sym_type(gfc_symbol*, bool)
        ../../gcc/fortran/trans-types.c:2272
0x8d5c6f gfc_get_function_type(gfc_symbol*, gfc_actual_arglist*, char const*)
        ../../gcc/fortran/trans-types.c:3126
0x86aa04 build_function_decl
        ../../gcc/fortran/trans-decl.c:2390
0x872976 gfc_create_function_decl(gfc_namespace*, bool)
        ../../gcc/fortran/trans-decl.c:3099
0x878fee gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:7461
0x7fb32e translate_all_program_units
        ../../gcc/fortran/parse.c:6638
0x7fb32e gfc_parse_file()
        ../../gcc/fortran/parse.c:6925
0x84806f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-05 17:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 18:22 [Bug fortran/103258] New: [12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114 gscfq@t-online.de
2021-11-16  8:25 ` [Bug fortran/103258] [12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114 since r12-4979-gee11be7f2d788e60 marxin at gcc dot gnu.org
2021-11-16  9:36 ` rguenth at gcc dot gnu.org
2021-11-16 16:39 ` sandra at gcc dot gnu.org
2021-12-12 17:23 ` sandra at gcc dot gnu.org
2021-12-12 17:25 ` sandra at gcc dot gnu.org
2022-01-05  3:29 ` sandra at gcc dot gnu.org
2022-01-05 17:03 ` cvs-commit at gcc dot gnu.org
2022-01-05 17:06 ` sandra at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).