cp-demangle.c (d_expression_1): Don't peek ahead unless the current char is valid.
authorBen L <bobsayshilol@live.co.uk>
Mon, 29 Apr 2019 22:19:01 +0000 (22:19 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 29 Apr 2019 22:19:01 +0000 (16:19 -0600)
commit956bea2cd6110f104f12d5861143efc71213c140
tree93fbd2fff674e214a9d87e8edd1a9bcb3689e160
parent7fb1d0214e4654bbecd212c7f0c2254398b46b13
cp-demangle.c (d_expression_1): Don't peek ahead unless the current char is valid.

* cp-demangle.c (d_expression_1): Don't peek ahead unless the current
char is valid.
* testsuite/demangle-expected: Add testcase.

From-SVN: r270664
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected