From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 09DE2385E836; Fri, 3 May 2024 09:14:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09DE2385E836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714727670; bh=K9PYScE5fNOl1AfhiFYaYRtxs0adYORo+tC6LyoK9ps=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YOaMHyZ9T9FtKj5m3FU6JMAExig1ncqDDUjPdMzEZxkmRDgYoA0H9JaVSzxkpD/cN NYHoX6ZjSgfi4oYxY8i/4ZwiBPVUW8El6wYUW2QnudVSgSJo8T+CFCuZ1k3KvNegQV AjlUAHiWk26GKzOAhbCOogvL2t0j32rBoWuX9U3E= From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114933] [15 Regression] mcfgthread-1.6.1 typecheck failure: error: explicit specializations are not permitted here Date: Fri, 03 May 2024 09:14:29 +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: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lh_mouse at 126 dot com 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=3D114933 --- Comment #6 from LIU Hao --- ISO/IEC WG21 N4917 > 13.9.4 Explicit specialization [temp.expl.spec] > 2 An explicit specialization shall not use a storage-class-specifier (9.2= .2) other than thread_local. This paragraph is new in N4658 and was not in N4917. Better to avoid it by moving the specialization into an extern "C++" block. Thanks for the report= .=