https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120363

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-05-21
     Ever confirmed|0                           |1
                 CC|                            |nshead at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |nshead at gcc dot 
gnu.org

--- Comment #2 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Confirmed.  Reduced:

  export module M;
  struct S {
    static thread_local int thread_singleton;
    inline static int& get_singleton() { return thread_singleton; }
  };

We're not setting DECL_CONTEXT on the TLS init func.

Reply via email to