public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/87980] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c for assignment on allocatable polymorphic variable
       [not found] <bug-87980-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-06 12:33 ` juergen.reuter at desy dot de
  2021-09-06 13:50 ` juergen.reuter at desy dot de
  1 sibling, 0 replies; 2+ messages in thread
From: juergen.reuter at desy dot de @ 2021-09-06 12:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Is anybody ever looked into this? Any updates?

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

* [Bug fortran/87980] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c for assignment on allocatable polymorphic variable
       [not found] <bug-87980-4@http.gcc.gnu.org/bugzilla/>
  2021-09-06 12:33 ` [Bug fortran/87980] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c for assignment on allocatable polymorphic variable juergen.reuter at desy dot de
@ 2021-09-06 13:50 ` juergen.reuter at desy dot de
  1 sibling, 0 replies; 2+ messages in thread
From: juergen.reuter at desy dot de @ 2021-09-06 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jürgen Reuter <juergen.reuter at desy dot de> ---
The actual workaround that I'm using (the code is from of our stale branches
which recently became active again) is:

[...]
 subroutine qn_string_set (qns, col)
    class(qn_string_t), intent(inout) :: qns
    class(col_t), dimension(:), intent(in), optional :: col
    class(col_t), allocatable :: col0
    integer :: i
    do i = 1, qns%length
       if (present (col)) then
          col0 = col(i)
          call qns%qn(i)%set (col=col0)
       end if
    end do
  end subroutine qn_string_set

end module quantum_numbers
[...]

This seems to work in our code, i.e. it compiles and it does what it should.
But in the long run, would be great to get it fixed for gcc/gfortran 12.

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

end of thread, other threads:[~2021-09-06 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-87980-4@http.gcc.gnu.org/bugzilla/>
2021-09-06 12:33 ` [Bug fortran/87980] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c for assignment on allocatable polymorphic variable juergen.reuter at desy dot de
2021-09-06 13:50 ` juergen.reuter at desy dot de

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