public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/111618] New: ICE in associate construction
@ 2023-09-27 21:39 antoine.lemoine@bordeaux-inp.fr
  2023-09-27 22:05 ` [Bug fortran/111618] " antoine.lemoine@bordeaux-inp.fr
  2023-09-28  8:57 ` anlauf at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: antoine.lemoine@bordeaux-inp.fr @ 2023-09-27 21:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111618
           Summary: ICE in associate construction
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoine.lemoine@bordeaux-inp.fr
  Target Milestone: ---

An ICE occurs with this code:

program prog
   implicit none
   type foo
      double precision, dimension(3) :: long_a
      double precision, dimension(3) :: long_b
   end type
   type(foo) :: the_foo
   double precision :: d
   associate(a => the_foo%long_a, b => the_foo%long_b)
      a = 2d0
      b = 1d0
      d = hypot(b(1), b(2)) ! No ICE without this line.
      b = a - b
   end associate
end program

No ICE when writing 'b = a - b(:)' or commenting out 'd = hypot(b(1), b(2))'.

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

end of thread, other threads:[~2023-09-28  8:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27 21:39 [Bug fortran/111618] New: ICE in associate construction antoine.lemoine@bordeaux-inp.fr
2023-09-27 22:05 ` [Bug fortran/111618] " antoine.lemoine@bordeaux-inp.fr
2023-09-28  8:57 ` 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).