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

            Bug ID: 128529
           Summary: internal compiler error: in cp_build_addr_expr_1, at
                    cp/typeck.cc
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 0599jiangyc at gmail dot com
  Target Milestone: ---

The following code:
```cpp
static_assert (__reference_constructs_from_temporary (const char *const &,
char[2]));
```

Resulted in this output:
```
<source>:1:83: internal compiler error: in cp_build_addr_expr_1, at
cp/typeck.cc:7696
```

Trunk reproducer (`-std=c++23`): https://godbolt.org/z/zdG3rPerW

Reply via email to