https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92654

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:0f50f6daa140186a048cbf33f54f4591eabf5f12

commit r11-291-g0f50f6daa140186a048cbf33f54f4591eabf5f12
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon May 11 15:46:59 2020 -0400

    c++: tree walk into TYPENAME_TYPE.

    While looking at 92583/92654 it occurred to me that typename types needed
    the same fix.  So extract_locals_r also needs to see the TYPE_CONTEXT of a
    TYPENAME_TYPE.  But it must not look through a typedef.

    Most tree walking in the front end wants to walk through the syntactic form
    of a type of expression, and doesn't care about the type referred to by a
    typedef.  But min_vis_r does care.

    gcc/cp/ChangeLog
    2020-05-11  Jason Merrill  <ja...@redhat.com>

            PR c++/92583
            PR c++/92654
            * tree.c (cp_walk_subtrees): Stop at typedefs.
            Handle TYPENAME_TYPE here.
            * pt.c (find_parameter_packs_r): Not here.
            (for_each_template_parm_r): Clear *walk_subtrees.
            * decl2.c (min_vis_r): Look through typedefs.

Reply via email to