Re: [demangler] Fix nested generic lambda

2017-09-15 Thread Pedro Alves
On 09/15/2017 05:15 PM, Pedro Alves wrote: > On 09/15/2017 01:04 PM, Nathan Sidwell wrote: >> >> >> Pedro, would you like me to port to gdb's libiberty, or will you do a >> merge in the near future? > > I wasn't planning to, but I'm doing it now. > Now done: https://sourceware.org/ml/gdb-patche

Re: [demangler] Fix nested generic lambda

2017-09-15 Thread Pedro Alves
On 09/15/2017 01:04 PM, Nathan Sidwell wrote: > > > Pedro, would you like me to port to gdb's libiberty, or will you do a > merge in the near future? I wasn't planning to, but I'm doing it now. Thanks much for the fix! -- Pedro Alves

[demangler] Fix nested generic lambda

2017-09-15 Thread Nathan Sidwell
This patch fixes PR82195, which turned out to be a demangler bug -- the specification and the compiler were DTRT. The originating source contained a non-generic lambda within a generic lambda. Because we had an older GDB without recursion protection in its demangler, GDB died, and that kind o