[demangler] Fix nested generic lambda
authorNathan Sidwell <nathan@acm.org>
Fri, 15 Sep 2017 12:23:57 +0000 (12:23 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 15 Sep 2017 12:23:57 +0000 (12:23 +0000)
commitfa0cdfb651f59951d10331b782c422baad93d3e4
tree8df9c2bc5a9ed8f3d6b38ca359f7db3b5a824ab8
parentdc4b8c68205ed860dd2dda9d00d868a96211d393
[demangler] Fix nested generic lambda

https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00994.html
PR demangler/82195
* cp-demangle.c (d_name): Add 'toplevel' parm.  Pass to ...
(d_local_name): ... here.  Parse trailing function args on nested
local_name.
(d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
* testsuite/demangle-expected: Add tests.

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