From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CE64E3849AE7; Fri, 3 May 2024 08:54:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE64E3849AE7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714726460; bh=riEDPt8XqlaT5GIp5X6JpMFHuJHdMxsk6PdHsIe1CwM=; h=From:To:Subject:Date:From; b=n3HLJrL1JPH8O1C1K2yfG3Rtdo6EmMpwx6tO8zakd0jaN5HPdwGjoZ5T3IZJ3RQWg 10Pd6/1dVK9S/084vqWJOKgDkZILJTs+zMocCOGlvpcntetcHoeW4mGyoHe50NlkF5 ziA1IVSwZOr+oLwbzs8U6BeEwyxo0c/Q4mkesD+8= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114933] New: [15 Regression] mcfgthread-1.6.1 typecheck failure: error: explicit specializations are not permitted here Date: Fri, 03 May 2024 08:54:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 114933 Summary: [15 Regression] mcfgthread-1.6.1 typecheck failure: error: explicit specializations are not permitted here Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- mcfgthread-1.6.1 build failure started happening a few days ago on `gcc` `master`. On r15-116-gff4dc8b10a421c minimized example failure looks this w= ay: // $ cat a.cc extern "C++" template struct __MCF_static_assert; extern "C++" template<> struct __MCF_static_assert { }; Fails as: $ g++ -c a.cc -std=3Dc++20 a.cc:2:14: error: explicit specializations are not permitted here 2 | extern "C++" template<> struct __MCF_static_assert { }; | ^~~~~~~~~~ For comparison 13.2.0 builds the example successfully: $ g++-13.2.0 -c a.cc -std=3Dc++20 Compiler details: $ g++ -v |& unnix Using built-in specs. COLLECT_GCC=3D/<>/gcc-15.0.0/bin/g++ COLLECT_LTO_WRAPPER=3D/<>/gcc-15.0.0/libexec/gcc/x86_64-unknown-linux-= gnu/15.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../source/configure --prefix=3D/<>/gcc-15.0.0 --with-gmp-include=3D/<>/gmp-6.3.0-dev/include --with-gmp-lib=3D/<>/gmp-6.3.0/lib --with-mpfr-include=3D/<>/mpfr-4.2.1-dev/include --with-mpfr-lib=3D/<>/mpfr-4.2.1/lib --with-mpc=3D/<>/libmpc-1.3.1 --with-native-system-header-dir=3D/<>/glibc-2.39-31-dev/include --with-build-sysroot=3D/ --with-gxx-include-dir=3D/<>/gcc-15.0.0/include/c++/15.0.0/ --program-prefix=3D --enable-lto --disable-libstdcxx-pch --without-included-gettext --with-system-zlib --enable-checking=3Drelease --enable-static --enable-languages=3Dc,c++ --disable-multilib --enable-plug= in --disable-libcc1 --with-isl=3D/<>/isl-0.20 --disable-bootstrap --build=3Dx86_64-unknown-linux-gnu --host=3Dx86_64-unknown-linux-gnu --target=3Dx86_64-unknown-linux-gnu Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 99999999 (experimental) (GCC)=