parser.c (cp_parser_simple_declaration): Diagnose function declaration among more...
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Jan 2017 20:13:14 +0000 (21:13 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Jan 2017 20:13:14 +0000 (21:13 +0100)
commitc9cf3863bdbd935be6b3915d39098c69a4f37740
treece4d45e6e90d78a30f569fe7f8701dfebf1da839
parent066435fe10c4982780b05844793ddf287ac1d225
parser.c (cp_parser_simple_declaration): Diagnose function declaration among more than one init-declarators with auto...

* parser.c (cp_parser_simple_declaration): Diagnose function
declaration among more than one init-declarators with auto
specifier.

* g++.dg/cpp1y/auto-fn34.C: New test.

From-SVN: r244071
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/auto-fn34.C [new file with mode: 0644]