diff options
author | Volker Reichelt <v.reichelt@netcologne.de> | 2017-04-04 16:30:44 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2017-04-04 16:30:44 +0000 |
commit | c0ea338bd2765c1af808a96e72a3928a52e4f558 (patch) | |
tree | b36519a20682d109be8765e8b50a528a647bd8a5 /gcc/cp/cxx-pretty-print.c | |
parent | a1527a93a6a7dcc031b917db1e6ff7efa8916c4a (diff) | |
download | gcc-c0ea338bd2765c1af808a96e72a3928a52e4f558.zip gcc-c0ea338bd2765c1af808a96e72a3928a52e4f558.tar.gz gcc-c0ea338bd2765c1af808a96e72a3928a52e4f558.tar.bz2 |
re PR c++/80296 (Broken diagnostic 'unary_plus_expr' not supported by expression)
PR c++/80296
* cxx-pretty-print.c (cxx_pretty_printer::expression): Add
UNARY_PLUS_EXPR case.
* g++.dg/cpp0x/alias-decl-80296.C: New test.
From-SVN: r246683
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r-- | gcc/cp/cxx-pretty-print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c index 470d124..f76c30a 100644 --- a/gcc/cp/cxx-pretty-print.c +++ b/gcc/cp/cxx-pretty-print.c @@ -1112,6 +1112,7 @@ cxx_pretty_printer::expression (tree t) case SIZEOF_EXPR: case ALIGNOF_EXPR: case NOEXCEPT_EXPR: + case UNARY_PLUS_EXPR: unary_expression (t); break; |