public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96012] New: [9/10/11 Regression] ICE in fold_convert_loc, at fold-const.c:2558
@ 2020-06-30 20:10 gscfq@t-online.de
  2020-07-01  6:51 ` [Bug fortran/96012] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gscfq@t-online.de @ 2020-06-30 20:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96012
           Summary: [9/10/11 Regression] ICE in fold_convert_loc, at
                    fold-const.c:2558
           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 20181014 and 20181021, affects versions down to r8 :


$ cat z1.f90
program p
   type t
   end type
   class(*), allocatable :: x(:)
   x = [t()]
end


$ cat z2.f90
program p
   type t
      integer :: a
   end type
   class(*), allocatable :: x(:)
   x = [t(1)]
end


$ gfortran-7 -c z1.f90
$
$ gfortran-11-20200628 -c z1.f90
z1.f90:5:0:

    5 |    x = [t()]
      |
internal compiler error: in fold_convert_loc, at fold-const.c:2558
0x900033 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:2558
0x705f6a gfc_allocate_using_malloc(stmtblock_t*, tree_node*, tree_node*,
tree_node*)
        ../../gcc/fortran/trans.c:714
0x7456ab trans_class_assignment
        ../../gcc/fortran/trans-expr.c:10649
0x7456ab gfc_trans_assignment_1
        ../../gcc/fortran/trans-expr.c:11042
0x704c37 trans_code
        ../../gcc/fortran/trans.c:1864
0x72e1d4 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6840
0x6b5cb6 translate_all_program_units
        ../../gcc/fortran/parse.c:6307
0x6b5cb6 gfc_parse_file()
        ../../gcc/fortran/parse.c:6546
0x7016ff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2021-06-01 12:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30 20:10 [Bug fortran/96012] New: [9/10/11 Regression] ICE in fold_convert_loc, at fold-const.c:2558 gscfq@t-online.de
2020-07-01  6:51 ` [Bug fortran/96012] " rguenth at gcc dot gnu.org
2020-07-01  7:06 ` marxin at gcc dot gnu.org
2020-12-18 14:00 ` cvs-commit at gcc dot gnu.org
2020-12-20 10:16 ` drikosev at gmail dot com
2021-01-07 11:19 ` cvs-commit at gcc dot gnu.org
2021-01-07 11:34 ` cvs-commit at gcc dot gnu.org
2021-03-26 19:44 ` anlauf at gcc dot gnu.org
2021-06-01  8:17 ` [Bug fortran/96012] [9/10/11/12 " rguenth at gcc dot gnu.org
2021-06-01 12:18 ` dominiq at lps dot ens.fr

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).