diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-16 09:55:18 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-16 09:55:18 +0000 |
commit | d4f5410da9ddab8db206d9d2aa78750421fe8456 (patch) | |
tree | 159d88610ddef9e31163ba8fe967c7d29dc84847 /gcc/cp/error.c | |
parent | 383803ae373ba328bbbc406ce1457460dc00c5e4 (diff) | |
download | gcc-d4f5410da9ddab8db206d9d2aa78750421fe8456.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 43b5cec0a95..2497c7f6d23 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -3172,10 +3172,6 @@ type_to_string (tree typ, int verbose) if (len == aka_len && memcmp (p, p+aka_start, len) == 0) p[len] = '\0'; } - - if (typ && TYPE_P (typ) && TREE_CODE (typ) == ENUMERAL_TYPE) - pp_string (cxx_pp, M_(" {enum}")); - return pp_ggc_formatted_text (cxx_pp); } |