]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix ICE in build_function_decl [PR116292]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 9 Aug 2024 14:19:23 +0000 (16:19 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Wed, 14 Aug 2024 07:11:41 +0000 (09:11 +0200)
commitbb2324769c5a03e275de00416659e624c97f1442
tree9bae941f0686f11d9e355e543d6b60b0970a809d
parentca7936f7764116a39d785bb087584805072a3461
Fix ICE in build_function_decl [PR116292]

Fix ICE by getting the vtype only when a derived or class type is
prevent.  Also take care about the _len component for unlimited
polymorphics.

gcc/fortran/ChangeLog:

PR fortran/116292

* trans-intrinsic.cc (conv_intrinsic_move_alloc): Get the vtab
only for derived types and classes and adjust _len for class
types.

gcc/testsuite/ChangeLog:

* gfortran.dg/move_alloc_19.f90: New test.
gcc/fortran/trans-intrinsic.cc
gcc/testsuite/gfortran.dg/move_alloc_19.f90 [new file with mode: 0644]