diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 1e59c537aeb..8e82a5fd776 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2016-04-08 Marcel Böhme + + PR c++/70498 + * cplus-dem.c (gnu_special): Handle case where consume_count returns + -1. + 2016-03-31 Mikhail Maltsev Marcel Bohme boehme.marcel@gmail.com diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 7ab46ddac48..abba234f04c 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -3001,6 +3001,11 @@ gnu_special (struct work_stuff *work, const char **mangled, string *declp) success = 1; break; } + else if (n == -1) + { + success = 0; + break; + } } else {