parser.c (cp_parser_cast_expression): Add target type of cast to diagnostic.
authorVolker Reichelt <v.reichelt@netcologne.de>
Thu, 27 Apr 2017 16:10:54 +0000 (16:10 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 27 Apr 2017 16:10:54 +0000 (16:10 +0000)
commit8211c4a299da94f1d8c16d176064cbfb5518a630
treead634f5671b22e264f7d83066ec259c4e2bc2424
parent4ca4927ac62079290939b2b93124ee8e09864491
parser.c (cp_parser_cast_expression): Add target type of cast to diagnostic.

        * parser.c (cp_parser_cast_expression): Add target type of cast to
        diagnostic.
        * error.c (type_to_string): Add '{enum}' suffix to enumeration types.

        * g++.dg/cpp1z/direct-enum-init1.C: Adjust for more verbose enum
        diagnostics.
        * g++.dg/warn/pr12242.C: Likewise.

From-SVN: r247347
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C
gcc/testsuite/g++.dg/warn/pr12242.C