public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/100273] New: [9/10/11/12 Regression] ICE in gfc_create_module_variable, at fortran/trans-decl.c:5352
@ 2021-04-26 19:43 gscfq@t-online.de
  2021-04-26 19:44 ` [Bug fortran/100273] " gscfq@t-online.de
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: gscfq@t-online.de @ 2021-04-26 19:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100273
           Summary: [9/10/11/12 Regression] ICE in
                    gfc_create_module_variable, at
                    fortran/trans-decl.c:5352
           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: ---

Started with r7 before 20180426, r6 compiles it :


$ cat z1.f90
module m
   implicit none
contains
   character(4) function g(k)
      integer :: k
      g = f(k)
   contains
      function f(n)
         character(3), parameter :: a(2) = ['1  ', '123']
         integer :: n
         character(len_trim(a(n))) :: f
         f = 'abc'
      end
   end
end
program p
   use m
   print *, '>>' // g(1) // '<<'
   print *, '>>' // g(2) // '<<'
end


$ gfortran-6 -c z1.f90
$
$ gfortran-11-20210425 -c z1.f90
f951: internal compiler error: in gfc_create_module_variable, at
fortran/trans-decl.c:5352
0x75f716 gfc_create_module_variable
        ../../gcc/fortran/trans-decl.c:5350
0x71df02 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4170
0x75fcbb gfc_generate_module_vars(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:5845
0x73a1f4 gfc_generate_module_code(gfc_namespace*)
        ../../gcc/fortran/trans.c:2307
0x6e6531 translate_all_program_units
        ../../gcc/fortran/parse.c:6342
0x6e6531 gfc_parse_file()
        ../../gcc/fortran/parse.c:6624
0x732d2f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2024-09-20 20:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 19:43 [Bug fortran/100273] New: [9/10/11/12 Regression] ICE in gfc_create_module_variable, at fortran/trans-decl.c:5352 gscfq@t-online.de
2021-04-26 19:44 ` [Bug fortran/100273] " gscfq@t-online.de
2021-04-26 20:52 ` anlauf at gcc dot gnu.org
2021-04-26 20:52 ` anlauf at gcc dot gnu.org
2021-06-01  8:20 ` rguenth at gcc dot gnu.org
2022-05-27  9:45 ` [Bug fortran/100273] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:44 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug fortran/100273] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-07-16 18:29 ` [Bug fortran/100273] [11/12/13/14/15 " anlauf at gcc dot gnu.org
2024-07-19 13:11 ` [Bug fortran/100273] [12/13/14/15 " rguenth at gcc dot gnu.org
2024-09-04 19:40 ` anlauf at gcc dot gnu.org
2024-09-05 19:44 ` anlauf at gcc dot gnu.org
2024-09-05 19:59 ` cvs-commit at gcc dot gnu.org
2024-09-05 20:02 ` [Bug fortran/100273] [12/13/14 " anlauf at gcc dot gnu.org
2024-09-20 19:35 ` cvs-commit at gcc dot gnu.org
2024-09-20 20:25 ` cvs-commit at gcc dot gnu.org
2024-09-20 20:28 ` cvs-commit at gcc dot gnu.org
2024-09-20 20:30 ` anlauf 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).