On 04/15/2017 09:21 AM, Iain Buclaw wrote:
This implements another previously undocumented part of the D ABI
spec, where symbols with no name are always encoded into the mangled
name.

     SymbolName:
         LName
         TemplateInstanceName
         0             // anonymous symbols

This has never really been a problem, as strtol() kindly jumps over
any leading zeros in the number it is parsing.  However this change
makes it so they are at least explicitly skipped over, rather than
silently ignored.

---


03-d-demangle-anonymous-symbols.patch


commit 6ffcb4ce75e471304960c97bec596c89e26894f8
Author: Iain Buclaw<ibuc...@gdcproject.org>
Date:   Sat Apr 15 11:32:07 2017 +0200

     libiberty/ChangeLog:
2017-04-15 Iain Buclaw<ibuc...@gdcproject.org> * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
        * testsuite/d-demangle-expected: Add tests.
OK for the trunk.

jeff

Reply via email to