C++: fix-it hint for removing stray semicolons
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 25 Apr 2017 14:10:52 +0000 (14:10 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 25 Apr 2017 14:10:52 +0000 (14:10 +0000)
commitfbe91804589555b48f00e1e26b98096745fc6882
tree95dffe7a23f7b79c3d296372f0180e4047adeda3
parent1c4ea66f24bc3801448d5c88847fc97d4e2767ee
C++: fix-it hint for removing stray semicolons

gcc/cp/ChangeLog:
* parser.c (cp_parser_member_declaration): Add fix-it hint
for removing stray semicolons.

gcc/testsuite/ChangeLog:
* g++.dg/semicolon-fixits.C: New test case.

From-SVN: r247244
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/semicolon-fixits.C [new file with mode: 0644]