* parser.c (cp_parser_simple_declaration): Diagnose function
commit04e02ebd4e8f66d12bcaef71c61954fe74f4ec33
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2017 20:13:14 +0000 (4 20:13 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2017 20:13:14 +0000 (4 20:13 +0000)
treece4d45e6e90d78a30f569fe7f8701dfebf1da839
parent424874ef106dc4ca9602da32a6c6b2f6ba4029d9
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244071 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/auto-fn34.C [new file with mode: 0644]