public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/99350] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1869
@ 2021-03-02 19:02 gscfq@t-online.de
  2021-03-03  7:57 ` [Bug fortran/99350] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2021-03-02 19:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99350
           Summary: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at
                    fortran/trans-decl.c:1869
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20200510 and 20200517 :


$ cat z1.f90
program p
   type t
      character(:), pointer :: a
   end type
   type(t) :: z
   character((1.)/0), target :: c = 'abc'
   z%a => c
   associate (y => z%a)
      print *, y
   end associate
end


$ cat z2.f90
program p
   type t
      character(:), pointer :: a
   end type
   type(t) :: z
   character((0.)/0), target :: c = 'abc'
   z%a => c
   associate (y => z%a)
      print *, y
   end associate
end


$ gfortran-11-20200510 -c z1.f90
z1.f90:6:19:

    6 |    character((1.)/0), target :: c = 'abc'
      |                   1
Error: Division by zero at (1)


$ gfortran-11-20210228 -c z1.f90
z1.f90:1:9:

    1 | program p
      |         1
internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1869
0x7596ec gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc/fortran/trans-decl.c:1869
0x75c05f generate_local_decl
        ../../gcc/fortran/trans-decl.c:5950
0x71af42 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4170
0x75d004 generate_local_vars
        ../../gcc/fortran/trans-decl.c:6156
0x75d004 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6815
0x6e3a46 translate_all_program_units
        ../../gcc/fortran/parse.c:6351
0x6e3a46 gfc_parse_file()
        ../../gcc/fortran/parse.c:6620
0x72fd7f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2023-06-08  6:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 19:02 [Bug fortran/99350] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1869 gscfq@t-online.de
2021-03-03  7:57 ` [Bug fortran/99350] " marxin at gcc dot gnu.org
2021-03-03  8:28 ` rguenth at gcc dot gnu.org
2021-06-01  8:19 ` [Bug fortran/99350] [9/10/11/12 " rguenth at gcc dot gnu.org
2022-05-27  9:44 ` [Bug fortran/99350] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-06-07  5:35 ` [Bug fortran/99350] [10/11/12/13/14 " pault at gcc dot gnu.org
2023-06-08  6:11 ` cvs-commit at gcc dot gnu.org
2023-06-08  6:19 ` pault 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).