[Bug c++/105734] [12/13 Regression]: Incorrect "error: invalid use of 'auto'" for explicit destructor inside a template

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 1 19:21:09 GMT 2022


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


commit r13-920-ge2e471d83d16449a325315c0f33dc52b90ce0fac
Author: Jason Merrill <jason@redhat.com>
Date:   Tue May 31 16:31:35 2022 -0400

    c++: auto and dependent member name [PR105734]

    In r12-3643 I improved our handling of type names after . or -> when
    unqualified lookup doesn't find anything, but it needs to handle auto

            PR c++/105734


            * parser.cc (cp_parser_postfix_dot_deref_expression): Use typeof
            if the expression has auto type.


            * g++.dg/cpp0x/auto57.C: New test.

More information about the Gcc-bugs mailing list