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

            Bug ID: 117778
           Summary: ICE maybe_add_lambda_conv_op
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ing.russomauro at gmail dot com
  Target Milestone: ---

The following code generates an internal error:


auto l = [](auto (*fp)() -> auto) { return fp; };


> internal compiler error: in maybe_add_lambda_conv_op, at cp/lambda.cc:1100


The trailing-return-type being auto is crucial to trigger the problem.

cv-qualification or a constraint in trailing-return-type do not save from ICE.


Not sure whether the cause is shared with one among:
Bug 99538
Bug 102624
Bug 115852
Bug 117400

but it seems those are different cases.

Reply via email to