parser.c (cp_parser_member_declaration): Add fix-it hints for stray comma and missing...
authorVolker Reichelt <v.reichelt@netcologne.de>
Sat, 29 Apr 2017 22:27:13 +0000 (22:27 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sat, 29 Apr 2017 22:27:13 +0000 (22:27 +0000)
commit6bbb3a69efa9d129c90179c3d00a0ac385a32f43
treec91b9914e72233b204f739045b85522526f2229f
parent30fc569c180ea2bf773402d12e8435d99e42a389
parser.c (cp_parser_member_declaration): Add fix-it hints for stray comma and missing semicolon at end of member declaration.

        * parser.c (cp_parser_member_declaration): Add fix-it hints for
        stray comma and missing semicolon at end of member declaration.

        * g++.dg/diagnostic/member-decl-1.C: New test.

From-SVN: r247412
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/member-decl-1.C [new file with mode: 0644]