[Bug fortran/81304] [6 Regression] Bogus warning with -Wsurprising and -fopenmp: Type specified for intrinsic function 'min' / 'max'

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 16:56:00 GMT 2018


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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 16:55:44 2018
New Revision: 262039

URL: https://gcc.gnu.org/viewcvs?rev=262039&root=gcc&view=rev
Log:
        Backported from mainline
        2017-11-24  Jakub Jelinek  <jakub@redhat.com>

        PR fortran/81304
        * trans-openmp.c (gfc_trans_omp_array_reduction_or_udr): Set
        attr.implicit_type in intrinsic_sym to avoid undesirable warning.

        * testsuite/libgomp.fortran/pr81304.f90: New test.

Added:
    branches/gcc-6-branch/libgomp/testsuite/libgomp.fortran/pr81304.f90
Modified:
    branches/gcc-6-branch/gcc/fortran/ChangeLog
    branches/gcc-6-branch/gcc/fortran/trans-openmp.c
    branches/gcc-6-branch/libgomp/ChangeLog


More information about the Gcc-bugs mailing list