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

Harald Anlauf <anlauf at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2026-12-03
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-valid-code
     Ever confirmed|0                           |1

--- Comment #1 from Harald Anlauf <anlauf at gcc dot gnu.org> ---
Confirmed.

Reduced testcase:

subroutine test_optional_as_addr
  integer, allocatable :: from(:), to(:)
  integer, allocatable :: stat
  allocate(from(20))
! call move_alloc(from, to, stat=stat) ! compiles with 16/17
  call move_alloc(from, to, stat)      ! ICE
  deallocate(to)
end subroutine

Reply via email to