public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95587] New: ICE in gfc_target_encode_expr, at fortran/target-memory.c:362
@ 2020-06-08 18:56 gscfq@t-online.de
  2020-06-08 22:03 ` [Bug fortran/95587] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2020-06-08 18:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95587
           Summary: ICE in gfc_target_encode_expr, at
                    fortran/target-memory.c:362
           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: ---

Affects versions down to at least r5 :


$ cat z1.f90
program p
   class(*), allocatable :: x, y
   equivalence (x, y)
end


$ cat z2.f90
program p
   type t
   end type
   class(t), allocatable :: x, y
   equivalence (x, y)
end


$ cat z0.f90   # ok, allocatable object or pointer not allowed
program p
   type t
   end type
   type(t), allocatable :: x, y
   equivalence (x, y)
end


$ gfortran-11-20200607 -c z1.f90
f951: internal compiler error: Invalid expression in gfc_target_encode_expr.
0x654af9 gfc_report_diagnostic
        ../../gcc/fortran/error.c:782
0x65621a gfc_internal_error(char const*, ...)
        ../../gcc/fortran/error.c:1402
0x6f3200 gfc_target_encode_expr(gfc_expr*, unsigned char*, unsigned long)
        ../../gcc/fortran/target-memory.c:362
0x6f32ff expr_to_char
        ../../gcc/fortran/target-memory.c:697
0x6f3dd0 gfc_merge_initializers(gfc_typespec, gfc_expr*, locus*, unsigned
char*, unsigned char*, unsigned long)
        ../../gcc/fortran/target-memory.c:735
0x71cc63 get_init_field
        ../../gcc/fortran/trans-common.c:544
0x71cc63 create_common
        ../../gcc/fortran/trans-common.c:633
0x71e111 finish_equivalences
        ../../gcc/fortran/trans-common.c:1326
0x71e111 gfc_trans_common(gfc_namespace*)
        ../../gcc/fortran/trans-common.c:1363
0x72b60f gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6764
0x6b3126 translate_all_program_units
        ../../gcc/fortran/parse.c:6306
0x6b3126 gfc_parse_file()
        ../../gcc/fortran/parse.c:6545
0x6feb3f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2020-06-23 20:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 18:56 [Bug fortran/95587] New: ICE in gfc_target_encode_expr, at fortran/target-memory.c:362 gscfq@t-online.de
2020-06-08 22:03 ` [Bug fortran/95587] " dominiq at lps dot ens.fr
2020-06-18 20:40 ` anlauf at gcc dot gnu.org
2020-06-18 21:28 ` anlauf at gcc dot gnu.org
2020-06-20 14:05 ` cvs-commit at gcc dot gnu.org
2020-06-22 19:27 ` cvs-commit at gcc dot gnu.org
2020-06-23 20:18 ` cvs-commit at gcc dot gnu.org
2020-06-23 20:32 ` 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).