parser.c (cp_parser_cv_qualifier_seq_opt): Add fix-it info to error message.
authorVolker Reichelt <v.reichelt@netcologne.de>
Mon, 24 Apr 2017 16:43:01 +0000 (16:43 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 24 Apr 2017 16:43:01 +0000 (16:43 +0000)
commitec856f5f8b372d1201ec204876ed078a1c0f1f37
tree88d5f6c97747660b51c1d197fa4c095fd629820d
parenta753df11b8bc86cf0e991fe2843ebb30b7992a16
parser.c (cp_parser_cv_qualifier_seq_opt): Add fix-it info to error message.

        * parser.c (cp_parser_cv_qualifier_seq_opt): Add fix-it info to
        error message.
        (cp_parser_virt_specifier_seq_opt): Likewise.
        (set_and_check_decl_spec_loc): Likewise twice.

        * g++.dg/diagnostic/duplicate1.C: New test.
        * g++.dg/cpp0x/duplicate1.C: New test.

From-SVN: r247105
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/duplicate1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/duplicate1.C [new file with mode: 0644]