From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C0F7C3874142; Wed, 14 Dec 2022 16:57:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0F7C3874142 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671037074; bh=PNprAAEd4aIMlotnzJfKDVqLv/vIFn6XzDHe/XMYkck=; h=From:To:Subject:Date:From; b=c/s57qK3TzOACojhnhHeh19uUNCSrQ3SfG2jar/QzAt5d5uOTwbuAs4/O0DGWS31B Qc6IyERSL8ewxjrAueV6t4MWzWUbxdsyh79J/fBQQ8NNzylqGL7VH285dMrTBycK1n 7nMos46JplKHN8HvzQszahA+LfB8prD/5cQn2wLU= From: "gawain.bolton at free dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108104] New: ICE in unify, at cp/pt.c:24333 with template partial specialization Date: Wed, 14 Dec 2022 16:57:53 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gawain.bolton at free dot fr 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=3D108104 Bug ID: 108104 Summary: ICE in unify, at cp/pt.c:24333 with template partial specialization Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gawain.bolton at free dot fr Target Milestone: --- Created attachment 54091 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54091&action=3Dedit ICE with template partial specialization - No issue if WITH_STATE is 0 i.e.= if the State parameter is absent Please see attached file which causes an internal compiler error. Note that there is no issue if the "State" template argument is removed as = can be shown if you set WITH_STATE to 0. No issue found with clang >=3D v13.0 ICE found with all versions of GCC I tried (from GCC v4.9.4 to GCC v12.2)=