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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With checking enabled we get:
```
In file included from <source>:2:
/cefs/22/22e6cdc013c8541ce3d1548e_consolidated/compilers_c++_x86_gcc_assertions-14.1.0/include/c++/14.1.0/variant:
In constructor 'constexpr std::variant<_Types>::variant(_Tp&&) [with _Tp = int;
<template-parameter-2-2> = void; <template-parameter-2-3> = void; _Tj = A;
<template-parameter-2-5> = void; _Types = {A, B}]':
/cefs/22/22e6cdc013c8541ce3d1548e_consolidated/compilers_c++_x86_gcc_assertions-14.1.0/include/c++/14.1.0/variant:1447:41:
internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:893
 1447 |                   std::forward<_Tp>(__t))
      |                                         ^
```

Reply via email to