From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A2BD53858C98; Sun, 31 Dec 2023 08:32:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2BD53858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704011550; bh=44edQ/9ZSQLqynAKSAFOWjUt0Cpha4PlyZw4IVD/RzY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W4X2kclbK9BEaJb2+fm3Yap47as/Gf8mOgD2T7xM9BQRIAaZ4UqKqfT2SHCzdqJoN ZJ8FV0Re5cJb98Eo+rdeVrSKa++qctj9wBzQOskYPXnkPm6proLlA/SYu+biCkQhS1 lWw7I6V/nUMsvjBDfLmiTCgV7jneaUC81SGJzxP4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113170] ICE: Segfault (template template parameter, alias template, default template argument) Date: Sun, 31 Dec 2023 08:32:27 +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: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: keywords 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=3D113170 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-invalid-code | --- Comment #3 from Andrew Pinski --- I am not 100% sure this is valid or not; I suspect it is not valid but=20 MSVC looks like goes into an similar infinite recusion too. While clang errors out: ``` :11:8: error: template template argument has different template parameters than its corresponding template template parameter 11 | SS ss; | ^ :6:1: note: too many template parameters in template template argum= ent 6 | template typename TT =3D SSS> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :8:10: note: previous template template parameter is here 8 | template typename TT =3D S, typename T =3D int> | ^~~~~~~~~~~~~~~~~~ ``` But that error message seems wrong.=