[Bug c++/107024] New: ICE in finish_expr_stmt, at cp/semantics.cc:872

alex at clmbng dot com gcc-bugzilla@gcc.gnu.org
Sat Sep 24 04:06:49 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107024

            Bug ID: 107024
           Summary: ICE in finish_expr_stmt, at cp/semantics.cc:872
           Product: gcc
           Version: 12.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alex at clmbng dot com
  Target Milestone: ---

Full code here: https://godbolt.org/z/6nnTonMjq

GCC seems to fail in certain situations involving lambdas in unevaluated
contexts. Here's a minimal example that triggers an ICE at the same spot:
https://godbolt.org/z/99jnqeeoG.

This is similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10569, but
triggers in a different location.

Using: GCC 12.2.0
Target: x86_64-linux-gnu
CL: -std=c++20


More information about the Gcc-bugs mailing list