c++: auto and dependent member name [PR105734]
authorJason Merrill <jason@redhat.com>
Tue, 31 May 2022 20:31:35 +0000 (16:31 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 1 Jun 2022 19:53:24 +0000 (15:53 -0400)
commitb090938e61260ce841a0d51de3407881a38e3c52
tree545e0871a114150f33107bb5339fae78221aea3c
parent819e3fda1e0fc4cc07f5fd9211cdb38cdec1b901
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]