[Bug fortran/98573] Dynamic type lost on assignment
"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98573 --- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:d4a985f88b45bef56a5ad3be00af53dfa8136422 commit r17-3164-gd4a985f88b45bef56a5ad3be00af53dfa8136422 Author: Paul Thomas <[email protected]> Date: Sun Aug 9 15:38:50 2026 +0100 Fortran: Fix missing vptrs for class allocations [PR98573] 2026-08-09 Paul Thomas <[email protected]> gcc/fortran PR fortran/98573 * trans-array.cc (gfc_array_init_size): If the expr3_desc is an array descriptor, use it for 'type'. * trans-stmt.cc (gfc_trans_allocate): Use trans_assignment to assign the source for class sources. gcc/testsuite/ PR fortran/98573 * gfortran.dg/allocate_class_5.f90: New test.