https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104994
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- So, is constexpr bool foo() { extern thread_local int x; return true; } static_assert (foo (), ""); valid C++14/17 and invalid C++20/23 then (the new P2242 wording says "a control flow that passes through a declaration of a variable with static or thread storage duration;")?