parser.c (cp_parser_cast_expression): Use %q#T instead of %qT in old-style cast diagn...
authorVolker Reichelt <reichelt@gcc.gnu.org>
Sun, 16 Jul 2017 09:55:18 +0000 (09:55 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sun, 16 Jul 2017 09:55:18 +0000 (09:55 +0000)
commita160ed77772d3bcedeff134598b42b2eb907d9a8
tree159d88610ddef9e31163ba8fe967c7d29dc84847
parent76d61a43a5d2571b81dfca0eaf644e299088bf30
parser.c (cp_parser_cast_expression): Use %q#T instead of %qT in old-style cast diagnostic.

        * parser.c (cp_parser_cast_expression): Use %q#T instead of %qT
        in old-style cast diagnostic.
        * typeck.c (maybe_warn_about_useless_cast): Use %q#T instead of %qT
        in useless cast diagnostic.
        * error.c (type_to_string): Remove enum special handling.

        * g++.dg/cpp1z/direct-enum-init1.C: Revert special enum handling.
        * g++.dg/warn/pr12242.C: Likewise.

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