https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102496
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[11/12 regression] extern |[11/12 regression] extern
|__thread declaration in |__thread and thread_local
|function scope produces a |declaration in function
|non-TLS reference |scope produces a non-TLS
| |reference
Severity|normal |major
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It is also broken for thread_local too:
struct a
{
operator int();
};
int main()
{
extern thread_local a thing;
return thing;
}