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 <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:e2e471d83d16449a325315c0f33dc52b90ce0fac commit r13-920-ge2e471d83d16449a325315c0f33dc52b90ce0fac Author: Jason Merrill <ja...@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.