c++: auto and dependent member name [PR105734]
commite2e471d83d16449a325315c0f33dc52b90ce0fac
authorJason Merrill <jason@redhat.com>
Tue, 31 May 2022 20:31:35 +0000 (31 16:31 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 1 Jun 2022 19:20:44 +0000 (1 15:20 -0400)
tree00d48a812db47add8febf8e3ef4ba4d78ba5c45e
parent72e52b88582e738c8b8bde5f85af63d3a0e15d2b
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.
gcc/cp/parser.cc
gcc/testsuite/g++.dg/cpp0x/auto57.C [new file with mode: 0644]