On Wed, Dec 07, 2016 at 02:42:12PM -0700, Jeff Law wrote: > >2016-11-16 Jakub Jelinek <ja...@redhat.com> > > > > PR c++/78373 > > * gimplify.c (gimplify_decl_expr): For TREE_CONSTANT reference > > vars with is_gimple_min_invariant initializer after stripping > > useless conversions keep non-NULL DECL_INITIAL. > > (gimplify_var_or_parm_decl): Add fallback argument. Gimplify > > TREE_CONSTANT reference vars with is_gimple_min_invariant initializer > > outside of OpenMP contexts to the initializer if fb_rvalue is > > allowed. > > (gimplify_compound_lval, gimplify_expr): Pass through fallback > > argument to gimplify_var_or_parm_decl. > > * omp-low.c (lower_omp_regimplify_p): Return non-zero for > > TREE_CONSTANT reference vars with is_gimple_min_invariant > > initializer. > > > > * g++.dg/opt/pr78373.C: New test. > > * g++.dg/gomp/pr78373.C: New test. > Is this still relevant?
No, Jason has committed a simpler change, see the PR. Jakub