parser.c (cp_parser_nested_name_specifier_opt): Add fix-it information to diagnostic...
authorVolker Reichelt <v.reichelt@netcologne.de>
Wed, 26 Apr 2017 16:57:25 +0000 (16:57 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Wed, 26 Apr 2017 16:57:25 +0000 (16:57 +0000)
commita480422d0ad67c0ced6b1a3a21c228277381b053
treeb28f928a76d6a463ea63897a80cf62a7e02fc9f7
parentf88523e5bcc718aa4265f320014ab818ae700e30
parser.c (cp_parser_nested_name_specifier_opt): Add fix-it information to diagnostic of invalid colon in nested-name-specifier.

        * parser.c (cp_parser_nested_name_specifier_opt): Add fix-it
        information to diagnostic of invalid colon in nested-name-specifier.

        * g++.dg/diagnostic/nested-name-1.C: New test.

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