https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83204
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paolo.carlini at oracle dot com --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> --- I'm looking a bit into this. First blush I'm also wondering if we don't want something like the below - which passes testing on x86_64-linux: Index: pt.c =================================================================== --- pt.c (revision 257438) +++ pt.c (working copy) @@ -17210,8 +17210,8 @@ tsubst_copy_and_build (tree t, r = build_x_indirect_ref (input_location, r, RO_UNARY_STAR, complain|decltype_flag); - if (TREE_CODE (r) == INDIRECT_REF) - REF_PARENTHESIZED_P (r) = REF_PARENTHESIZED_P (t); + if (REF_PARENTHESIZED_P (t)) + r = force_paren_expr (r); RETURN (r); }