From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61F3C3858D38; Fri, 26 Jan 2024 15:10:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61F3C3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706281809; bh=xLL0ge2qJGfSDVaNMR241m0FoOPOKIqQXjmu17iviIc=; h=From:To:Subject:Date:From; b=CAM5aOnj+GatmEVx/tjDeRb5Z8A7AVls5kQ38dCTDV2tuKaxUnOejkY5O9lKr8TxX wCiDVrp3EXZ/EMnztv0qejS8s7rh9FT82mGsN1/ZqKGXqAXO/Zk7GbxUdTRWTHTezw R9PUvM315ZIWhZ/Xp2jLAume7lymAnLRPrNuZJF8= From: "hans.buchmann.wantuch at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113620] New: Specialized Template Date: Fri, 26 Jan 2024 15:10:08 +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: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hans.buchmann.wantuch at gmail dot com 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 attachments.created 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=3D113620 Bug ID: 113620 Summary: Specialized Template Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hans.buchmann.wantuch at gmail dot com Target Milestone: --- Created attachment 57225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57225&action=3Dedit Bug report generated with: -freport-bug Compiling the code bug-1.cc ------8<------8<------8<------8<------ class CRC { public: template struct Def { using TYP=3DT; static const TYP INIT=3D0; }; enum Method {MSB_FIRST,LSB_FIRST}; template class BIT{}; template struct BIT { DEF::TYP r=3DDEF::INIT; }; }; int main(int argc,char** args) { CRC::BIT> crc; return 0; } ------8<------8<------8<------8<------ compiling with: g++ -freport-bug -std=3Dc++2a -c -o bug-1.o bug-1.cc results in the following output: see attached bug-report.txt Sincerely Hans Buchmann=