https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98398
Bug ID: 98398 Summary: demangler fails on function parameter from enclosing parameter-type-list Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: demangler Assignee: unassigned at gcc dot gnu.org Reporter: jason at gcc dot gnu.org Target Milestone: --- A subset of g++.dg/abi/mangle45.C: template<class T> void f(T p, decltype(p)) { } int main() { f (1,0); } This produces the symbol _Z1fIiEvT_DtfL0p_E wher fL0p_ means the first function parameter from the first enclosing parameter-type-list. The demangler doesn't currently handle the fL<n>p form at all; it tries to demangle it as a binary left fold expression, which also uses fL, but not followed by a digit.