parser.c (cp_parser_decl_specifier_seq): Add fix-it hints for friend outside class...
authorVolker Reichelt <v.reichelt@netcologne.de>
Mon, 17 Jul 2017 16:58:00 +0000 (16:58 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 17 Jul 2017 16:58:00 +0000 (16:58 +0000)
commitdbc4ecfc5772cc21b2a1f95ec97d186d7b350f8f
treece133a70b7b0ed1ef50c49e0ff1fb510b8eb8b3e
parenta64559a5fc0373710a6f3ae7a8b569b439146fde
parser.c (cp_parser_decl_specifier_seq): Add fix-it hints for friend outside class and obsolete auto as...

        * parser.c (cp_parser_decl_specifier_seq): Add fix-it hints for
        friend outside class and obsolete auto as storage-class-specifier.

        * g++.dg/diagnostic/friend1.C: New test.
        * g++.dg/cpp0x/auto1.C: Add check for fix-it hint.

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