[Bug c++/99790] New: internal compiler error: in expand_expr_real_2

antiro42 at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 26 12:29:14 GMT 2021


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

            Bug ID: 99790
           Summary: internal compiler error: in expand_expr_real_2
           Product: gcc
           Version: 10.2.0
               URL: https://godbolt.org/z/PsMrafh9c
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antiro42 at gmail dot com
  Target Milestone: ---

internal compiler error: in expand_expr_real_2, at expr.c:8701

Error is reproducible in compiler explorer with both gcc 10.2 and gcc trunk.
See attached URL for a minimal reproduction scenario.

The error seems to occur when trying to use the stored pointer to member in the
lambda.

I tried adding the suggested compiler flags but this did not influence the
result.

The code compiles fine in clang 11.


More information about the Gcc-bugs mailing list