https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84784
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:7eb61a45a171d4f8f5bf4d4f469d42e657c69a6a commit r12-6900-g7eb61a45a171d4f8f5bf4d4f469d42e657c69a6a Author: Harald Anlauf <anl...@gmx.de> Date: Thu Jan 27 20:23:00 2022 +0100 Fortran: add missing conversions for result of intrinsics to result type gcc/fortran/ChangeLog: PR fortran/84784 * trans-intrinsic.cc (conv_intrinsic_image_status): Convert result to resulting (default) integer type. (conv_intrinsic_team_number): Likewise. (gfc_conv_intrinsic_popcnt_poppar): Likewise. gcc/testsuite/ChangeLog: PR fortran/84784 * gfortran.dg/pr84784.f90: New test.