From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13C833858430; Fri, 15 Apr 2022 22:59:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13C833858430 From: "michsteinb at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105289] New: ICE on partial specialization Date: Fri, 15 Apr 2022 22:59:46 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: michsteinb 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2022 22:59:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105289 Bug ID: 105289 Summary: ICE on partial specialization Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: michsteinb at gmail dot com Target Milestone: --- Created attachment 52818 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52818&action=3Dedit Self-contained reproduction of the ICE, compile with -std=3Dc++20 arm-none-eabi-g++ 11.2 crashes on attached self-contained code with followi= ng prompt on win64: ``` PS H:\projects\install\arm-embedded-gcc\11.2-2022.02\bin> .\arm-none-eabi-g++.exe -save-temps -std=3Dc++20 -c repro.cxx repro.cxx:14:8: internal compiler error: Segmentation fault 14 | struct push_front_vlist, Arg> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ``` The 10.x release cycle compilers accepted this code, so does clang, so this= is a regression introduced with 11.0. Further checks on godbolt showed the same behaviour on all 11.x compilers I tried. The problem stems from the primary template using a meta-function of its fi= rst parameter as type for its second. If I do not constrain the type of Arg, the crash disappears.=