re PR middle-end/89015 (ICE in lookup_decl_in_outer_ctx, at omp-low.c:3480)
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Jan 2019 19:17:13 +0000 (20:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 24 Jan 2019 19:17:13 +0000 (20:17 +0100)
commit3b4218cc9f243cfe796dd933e8d0abd9c610503e
treebaa0aa52cb31982ee276ae970e04d25830cec389
parente21c4491293763b5dc61664b6a2292c3a8fc8ae1
re PR middle-end/89015 (ICE in lookup_decl_in_outer_ctx, at omp-low.c:3480)

PR middle-end/89015
* tree-nested.c (convert_nonlocal_reference_stmt,
convert_local_reference_stmt, convert_tramp_reference_stmt,
convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
or GIMPLE_OMP_TASK.

* gcc.dg/gomp/pr89015.c: New test.

From-SVN: r268246
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr89015.c [new file with mode: 0644]
gcc/tree-nested.c