c++: Add fixed test [PR106957]
Adds a test case to verify the fix for a C++ compiler bug involving unevaluated lambda expressions.
This commit adds a new test case to the GCC testsuite to verify the fix for PR106957, a bug involving error routines being re-entered with unevaluated lambda expressions. The bug was fixed by r16-8015.
In Details
This patch adds g++.dg/cpp2a/lambda-uneval32.C to the testsuite. This test verifies the fix for PR106957, which involved a re-entry issue with error routines and unevaluated lambda expressions, addressed by commit r16-8015.
For Context
Lambda expressions are a feature in C++ that allow you to create anonymous functions. During compilation, the compiler must handle these expressions correctly, particularly when errors occur. This commit adds a new test case that specifically targets a bug that occurred when the compiler encountered errors within lambda expressions.