Files
clang-p2996/clang/test/SemaCXX/source_location.cpp
cor3ntin d219c63b16 [Clang] Fix crash with source_location in lambda declarators. (#107411)
Parsing lambdas require pushing a declaration context for the lambda, so
that parameters can be attached to it, before its trailing type is
parsed. DAt that point, partially-parsed lambda don't have a name that
can be computed for then.
This would cause source_location::current() to crash when use in the
decltype of a lambda().
We work around this by producing a source_location for an enclosing
scope in that scenario.

Fixes #67134
2024-09-05 20:45:31 +02:00

28 KiB