public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/104554] New: ICE in check_assumed_size_reference, at fortran/resolve.cc:1650
@ 2022-02-15 19:39 gscfq@t-online.de
  2022-02-15 21:42 ` [Bug fortran/104554] " kargl at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2022-02-15 19:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104554
           Summary: ICE in check_assumed_size_reference, at
                    fortran/resolve.cc:1650
           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: ---

With a missing attribute allocatable or pointer :
(starts with r9)


$ cat z1.f90
program p
   type t
      integer :: a
   end type
   class(t) :: x(*)
   x%a = 3
end


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


$ gfortran-12-20220213 -c z1.f90
z1.f90:5:19:

    5 |    class(t) :: x(*)
      |                   1
Error: Assumed size array at (1) must be a dummy argument
f951: internal compiler error: Segmentation fault
0xe7073f crash_signal
        ../../gcc/toplev.cc:322
0x79babd check_assumed_size_reference
        ../../gcc/fortran/resolve.cc:1650
0x7a136f resolve_variable
        ../../gcc/fortran/resolve.cc:5873
0x7a136f gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.cc:7171
0x7a9324 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.cc:7136
0x7a9324 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.cc:11927
0x7aa977 resolve_codes
        ../../gcc/fortran/resolve.cc:17536
0x7aaa3e gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.cc:17571
0x792d64 resolve_all_program_units
        ../../gcc/fortran/parse.cc:6586
0x792d64 gfc_parse_file()
        ../../gcc/fortran/parse.cc:6842
0x7e102f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:216

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

end of thread, other threads:[~2023-02-16 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15 19:39 [Bug fortran/104554] New: ICE in check_assumed_size_reference, at fortran/resolve.cc:1650 gscfq@t-online.de
2022-02-15 21:42 ` [Bug fortran/104554] " kargl at gcc dot gnu.org
2022-02-24 11:22 ` marxin at gcc dot gnu.org
2023-02-15 19:59 ` anlauf at gcc dot gnu.org
2023-02-15 21:23 ` cvs-commit at gcc dot gnu.org
2023-02-16 17:30 ` cvs-commit at gcc dot gnu.org
2023-02-16 17: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).