From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F2CF38582AB; Wed, 30 Nov 2022 19:36:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F2CF38582AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669836994; bh=5nevFOTYiLkxqFHjQKWxkB6wmZTPRCdxbfTr75QkofU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DC7rtTNsX8DBeoirZ1jUfWzvR9G/of8GqxapShdiwwafzyCm1jGeHlSiK0Mwjx/79 CsDA6Lb6f/jGGMqZvz6qNuGl5Qlj8cN20crj47onXfG+GQ7skYG3FUEY0QK19/IC9b KEDj/pa250yGt6eeJ+hCd4d6HV8tSKNMJ1YrgLNg= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107939] [11/12/13 Regression] Rejects use of `extern const` variable in a template Date: Wed, 30 Nov 2022 19:36:34 +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: 13.0 X-Bugzilla-Keywords: needs-bisection, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 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=3D107939 --- Comment #2 from Johel Ernesto Guerrero Pe=C3=B1a --- Making the expression using the `extern const` variable more complex or indirect makes it work. With an IILE, for example: https://compiler-explorer.com/z/EjYYvPvqT.=