Re: [PATCH] Fix c++/78621 generic lambda mangling

2016-12-08 Thread Nathan Sidwell
On 12/08/2016 02:08 PM, Jason Merrill wrote: Right. Which is because they act as normal template parameters rather than like the auto type-specifier does in, say, a variable declaration. But indeed this produces bad mangling, and using Da in the mangling of a generic lambda seems reasonable. Y

Re: [PATCH] Fix c++/78621 generic lambda mangling

2016-12-08 Thread Jason Merrill
On 12/07/2016 01:30 PM, Nathan Sidwell wrote: This patch fixes the generic lambda mangling bug that caused the demangler to infinitely recurse (78252). The generic's auto parms fail the is_auto check because that's testing for the 'auto' identifier, whereas the parms are distinct template type p

[PATCH] Fix c++/78621 generic lambda mangling

2016-12-07 Thread Nathan Sidwell
This patch fixes the generic lambda mangling bug that caused the demangler to infinitely recurse (78252). The generic's auto parms fail the is_auto check because that's testing for the 'auto' identifier, whereas the parms are distinct template type parms named 'auto:$N'. Amending is_auto to do