https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119076
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed|2025-03-01 00:00:00 |2025-03-02 Target Milestone|--- |15.0 Ever confirmed|0 |1 --- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Short testcase. t.hpp: ``` template<int> inline unsigned decode() { static const unsigned char utf8d[400] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF }; } template<int> inline void gg() { decode<1> (); } ``` main.cxx: ``` #include "t.hpp" int main() { gg<0>(); } ``` g++ -fmodules-ts -std=gnu++20 t.hpp -Wfatal-errors g++ main.cxx -fmodules-ts -std=gnu++20 -Wfatal-errors