https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100132
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:9de83c0939dabdbefcb88dfef3ad7caf932951ec commit r12-8802-g9de83c0939dabdbefcb88dfef3ad7caf932951ec Author: José Rui Faustino de Sousa <jrfso...@gmail.com> Date: Mon Sep 19 22:00:45 2022 +0200 Fortran: Fix function attributes [PR100132] gcc/fortran/ChangeLog: PR fortran/100132 * trans-types.cc (create_fn_spec): Fix function attributes when passing polymorphic pointers. gcc/testsuite/ChangeLog: PR fortran/100132 * gfortran.dg/PR100132.f90: New test. (cherry picked from commit be60aa5b608b5f09fadfeff852a46589ac311a42)