Skip to content
Unverified Commit 64ffe64d authored by cor3ntin's avatar cor3ntin Committed by GitHub
Browse files

[Clang] Handle sema of noexcept condition in their evaluation context. (#67538)

The conditions of a noexcept and explicit specifier are full
expressions. Before this patch, we would call ActOnFinishFullExpr on
these in the context of the enclosing expression, which would cause the
collect of odr-used variables (and subsequently capture attempts) in the
wrong (enclosing) context.

This was observable when parsing the noexcept specifier condition of a
lambda appearing in a wider full expression odr-using variables.

Fixes #67492
parent 9744909a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment