[Bug c++/123566] [16 Regression] ICE in finish_expr_stmt, at cp/semantics.cc:1171 since r16-6352 with a local type defined in a lambda as a default template argument
andi-gcc at firstfloor dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 20 09:20:47 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123566
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andi-gcc at firstfloor dot org
--- Comment #13 from Andi Kleen <andi-gcc at firstfloor dot org> ---
Created attachment 63425
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63425&action=edit
add missing errors
The error happens because cp_finish_decl sees an error tree without an error
happening first.
this patch fixes the test case. error messages likely need improvement.
More information about the Gcc-bugs
mailing list