re PR c++/37189 (OpenMP task construct with implicit firstprivate variables ICEs)
PR c++/37189 * cp-tree.h (defer_mark_used_calls, deferred_mark_used_calls): New extern decls. * decl2.c (mark_used): If defer_mark_used_calls, push decl into deferred_mark_used_calls vector and exit early. * decl.c (defer_mark_used_calls, deferred_mark_used_calls): New variables. (finish_function): Set defer_mark_used_calls for the duration of the function. Call mark_used on any queued decls. * g++.dg/gomp/pr37189.C: New test. From-SVN: r139955
Showing
gcc/testsuite/g++.dg/gomp/pr37189.C
0 → 100644
Please
register
or
sign in
to comment