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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>:

https://gcc.gnu.org/g:dbb718175d7df89b957b316ba2f5fbea5d21b2b1

commit r15-1434-gdbb718175d7df89b957b316ba2f5fbea5d21b2b1
Author: Andre Vehreschild <ve...@gcc.gnu.org>
Date:   Thu Jun 6 14:01:13 2024 +0200

    Fortran: Set the vptr of a class typed result.

            PR fortran/90076

    gcc/fortran/ChangeLog:

            * trans-decl.cc (gfc_generate_function_code): Set vptr for
            results to declared class type.
            * trans-expr.cc (gfc_reset_vptr): Allow to provide the typespec
            instead of the expression.
            * trans.h (gfc_reset_vptr): Same.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/class_76.f90: Add declared vtab occurrence.
            * gfortran.dg/class_78.f90: New test.
  • [Bug fortran/90076] Polymorphic... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to