#
a78899d4 |
|
26-Mar-2021 |
Kacper Kasper <kacperkasper@gmail.com> |
Debugger: fix infinite recursion when resolving lambdas * Should fix #14346. Uploaded executable there doesn't work anymore, but this patch is prepared for case in #16040, and fixes #16680 too. * The issue is that if lambda parameters use an alias, this alias has that lambda as a parent. Specifically the compiler generates operator() subprogram, Debugger tries to resolve types for its parameters, but at the same time it is a parent namespace for those types. * Call chain: operator()( -> type 1 -> namespace: operator()( -> type 1 -> namespace: operator()( -> ... Change-Id: I7aad150a8d9de4f0c01ae0c1db5e486416b72112 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3824 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|