auto-fn15.C
1.35 KB
-
re PR c++/84582 (Rejected valid C++ code since r257961) · 1d4f0f3f
PR c++/84582 * semantics.c (force_paren_expr): Create a PAREN_EXPR when in a template. (maybe_undo_parenthesized_ref): Unwrap PAREN_EXPR. * typeck2.c (store_init_value): Call fold_non_dependent_expr instead of instantiate_non_dependent_expr. * tree.c (lvalue_kind): Handle PAREN_EXPR like NON_DEPENDENT_EXPR. * g++.dg/cpp1y/auto-fn15.C: Extend testing. * g++.dg/cpp1z/static1.C: New test. * g++.dg/template/static37.C: New test. Co-Authored-By: Jason Merrill <jason@redhat.com> From-SVN: r258116
Marek Polacek committed