https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107280
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-10-17 Target Milestone|--- |13.0 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |jason at gcc dot gnu.org, | |marxin at gcc dot gnu.org --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Confirmed, thanks for the test-case, reduced to: $ cat pr107280.C struct string { char str[8] = ""; }; template <int, int> consteval void test() { string str{}; auto append = [&](char *s) { *str.str = *s; }; append(""); } auto f() { test<true, true>(); }