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

            Bug ID: 126215
           Summary: ICE constant not recomputed when 'ADDR_EXPR' changed
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kengusername at proton dot me
  Target Milestone: ---

This program fails to compile on gcc 16.1 with assertions

https://godbolt.org/z/KxWecqEPE

```
#include <tuple>
#include <string>

template<typename T> constexpr auto to(auto s) {
  return T{s};
}

constexpr auto names = [](auto... s) { return std::tuple{ to<std::string>(s)...
}; }('1', '2');

int main() {
  auto x = std::get<0>(names);
}
```

Reply via email to