From e1fe3c698f5400139a4a5bec73c4600da8858356 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 19 May 2016 10:49:30 +0200 Subject: [PATCH] re PR c++/70498 (Libiberty Demangler segfaults (3)) PR c++/70498 * cp-demangle.c (d_expression_1): Formatting fix. From-SVN: r236445 --- libiberty/ChangeLog | 5 +++++ libiberty/cp-demangle.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c398abd4f18..59ac8bea53c 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2016-05-19 Jakub Jelinek + + PR c++/70498 + * cp-demangle.c (d_expression_1): Formatting fix. + 2016-05-18 Artemiy Volkov * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index aad0a5d5659..09d64699466 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -3181,7 +3181,7 @@ d_expression_1 (struct d_info *di) index = d_compact_number (di); if (index == INT_MAX || index == -1) return NULL; - index ++; + index++; } return d_make_function_param (di, index); } -- 2.30.2