From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43AEF3858C54; Thu, 5 Jan 2023 14:52:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43AEF3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672930363; bh=ez4eUMHMzsaaq7R52/kLsgiD4xei0Ck113TP09hTg3o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=v2NoiQpH7wRC3nUwmWYRGU7C6TuZNd8bijTIwEcjvKXy8NvtZfcZX5fPNcTKQ8qAU +9zmKYAgjLrWqbBo353xRTPP3nncL4Iaybb3FQBuYC2tQgjRY+1v6FGla3UKt1gusc xV8xNmmUkqLoYt6QwiTlVbsB61WE9slDkqejzd6w= From: "agriff at tin dot it" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced Date: Thu, 05 Jan 2023 14:52:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: agriff at tin dot it X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108299 --- Comment #5 from Andrea Griffini --- So you are saying that the standard forgot to add "that requires dynamic initialization" and that this is the intention?=