Handle an overflow case (PR70498, patch by Marcel Böhme).

PR c++/70498
	* cplus-dem.c (gnu_special): Handle case where consume_count returns
	-1.

From-SVN: r234828
This commit is contained in:
Marcel Böhme 2016-04-08 12:06:59 +00:00 committed by Bernd Schmidt
parent c3da495616
commit 59dad006fa
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
PR c++/70498
* cplus-dem.c (gnu_special): Handle case where consume_count returns
-1.
2016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
Marcel Bohme boehme.marcel@gmail.com

View File

@ -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
{