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

            Bug ID: 123081
           Summary: ICE: in output_constant, at varasm.cc:5669
                    (reflection)
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eczbek.void at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/PaG3rjhEq

```
template<typename T>
constexpr auto refl = ^^T;

struct {
        template<typename T>
        requires(requires { typename[:refl<T>:]; })
        void f(T) {}
} a;

int main() {
        a.f([] {});
}
```

```
<source>:12:1: internal compiler error: in output_constant, at varasm.cc:5669
   12 | }
      | ^
0x293efa8 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x2933d6b internal_error(char const*, ...)
        ???:0
0xb16cd8 fancy_abort(char const*, int, char const*)
        ???:0
0x193773f assemble_variable(tree_node*, int, int, int)
        ???:0
0xfb9df1 symbol_table::finalize_compilation_unit()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```

Reply via email to