https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:b090938e61260ce841a0d51de3407881a38e3c52 commit r12-8447-gb090938e61260ce841a0d51de3407881a38e3c52 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.