https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104994
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Jason, thoughts on this? It is true that clang++ accepts the #c0 testcase, both clang++ and g++ accept const thread_local int a = 1; constexpr int foo () { return a; } static_assert (foo () == 1, "");