https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89015
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jan 24 19:17:13 2019 New Revision: 268246 URL: https://gcc.gnu.org/viewcvs?rev=268246&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.dg/gomp/pr89015.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-nested.c