re PR middle-end/89621 (ICE with allocatable character and openmp)
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Mar 2019 22:33:29 +0000 (23:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Mar 2019 22:33:29 +0000 (23:33 +0100)
commit79d64ee8295b19668e47e0f38bfe77ad9d67c0a7
tree89da244f9e4f48eabb4b07ba477ea7762b9c30fd
parente4479ec676b96445e52f47950703218162c4637a
re PR middle-end/89621 (ICE with allocatable character and openmp)

PR middle-end/89621
* tree-inline.h (struct copy_body_data): Add
dont_remap_vla_if_no_change flag.
* tree-inline.c (remap_type_3, remap_type_2): New functions.
(remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
and remap_type_2 returns false.
* omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
only from where it is copied to nested contexts.

* gfortran.dg/gomp/pr89621.f90: New test.

From-SVN: r270009
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr89621.f90 [new file with mode: 0644]
gcc/tree-inline.c
gcc/tree-inline.h