[Fortran] avoid ICE in gfc_omp_check_optional_argument (PR93464)
authorTobias Burnus <tobias@codesourcery.com>
Tue, 28 Jan 2020 10:54:57 +0000 (11:54 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 28 Jan 2020 11:01:52 +0000 (12:01 +0100)
commit627d59b6b3062de921fbdd80b2b48de18f599d03
tree95feb1da6c8e509fe570141d11a20468c7e342b4
parent1ee3b380dfb479b335f3b50039ce26abcbffe59a
[Fortran] avoid ICE in gfc_omp_check_optional_argument (PR93464)

        PR fortran/93464
        * openmp.c (gfc_omp_check_optional_argument): Avoid ICE when
        DECL_LANG_SPECIFIC and GFC_DESCRIPTOR_TYPE_P but not
        GFC_DECL_SAVED_DESCRIPTOR as for local allocatable character vars.

        PR fortran/93464
        * gfortran.dg/goacc/pr93464.f90: New.
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr93464.f90 [new file with mode: 0644]