[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734
--- 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>:
https://gcc.gnu.org/g:e2e471d83d16449a325315c0f33dc52b90ce0fac
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
specially.
PR c++/105734
gcc/cp/ChangeLog:
* parser.cc (cp_parser_postfix_dot_deref_expression): Use typeof
if the expression has auto type.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/auto57.C: New test.
More information about the Gcc-bugs
mailing list