C++: fix-it hint for removing stray semicolons
commit83e4d5c3551142efae3f19f69c8a2eae51188b48
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Apr 2017 14:10:52 +0000 (25 14:10 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Apr 2017 14:10:52 +0000 (25 14:10 +0000)
tree95dffe7a23f7b79c3d296372f0180e4047adeda3
parent112e1c2cd45796e62d4318dbebcae6491979d638
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.

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