re PR c++/70622 (auto specifier don't deduce value type and its pointer type within...
authorJason Merrill <jason@redhat.com>
Thu, 14 Apr 2016 20:14:49 +0000 (16:14 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 14 Apr 2016 20:14:49 +0000 (16:14 -0400)
commit65bddf289ea2e8b9f7de201af6c2ad322a904d7e
treee4bf4b8c4a8144e120461ac5c0a4b613ad2ebe8c
parentd25a101fe78834db307bb868056b0ff5152e0eb3
re PR c++/70622 (auto specifier don't deduce value type and its pointer type within single declaration.)

PR c++/70622

* parser.c (cp_parser_init_declarator): Add auto_result parm.
(cp_parser_simple_declaration): Pass it.
(strip_declarator_types): New.

From-SVN: r234991
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/auto47.C [new file with mode: 0644]