Commit 5de9c9d
GNU3 demangler: fix sr N-prefix source-name qualifiers and digit-branch substitution pushes
- sr N-prefix branch: guard DemangleUnresolvedType() call with isdigit check
so GCC-style N <source-name>+ E patterns don't throw on digit-start names
- sr N-prefix branch: push template instantiation (name+args) after template args,
in addition to the bare name, to keep the substitution table in sync
- sr digit branch: push bare name and template instantiation to substitution table
so forward references like SK_ resolve correctly
Reduces demangling failures on the corpus from 90 to 4.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8175a71 commit 5de9c9d
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1784 | 1784 | | |
1785 | 1785 | | |
1786 | 1786 | | |
1787 | | - | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
1788 | 1794 | | |
1789 | 1795 | | |
1790 | 1796 | | |
| 1797 | + | |
1791 | 1798 | | |
1792 | 1799 | | |
1793 | 1800 | | |
| |||
1796 | 1803 | | |
1797 | 1804 | | |
1798 | 1805 | | |
| 1806 | + | |
| 1807 | + | |
1799 | 1808 | | |
1800 | 1809 | | |
1801 | 1810 | | |
| |||
1822 | 1831 | | |
1823 | 1832 | | |
1824 | 1833 | | |
| 1834 | + | |
| 1835 | + | |
1825 | 1836 | | |
1826 | 1837 | | |
1827 | 1838 | | |
1828 | 1839 | | |
1829 | 1840 | | |
1830 | 1841 | | |
| 1842 | + | |
| 1843 | + | |
1831 | 1844 | | |
1832 | 1845 | | |
1833 | 1846 | | |
| |||
0 commit comments