From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 38D2D3858C50; Thu, 11 Apr 2024 23:47:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38D2D3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712879259; bh=o6RSCp0XIhF+Z+3xcfS27X53j4Px4j7LXulOqziBhgE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pxU3ZHBxRQ/fd299lX/8n3PAU4XV35Fe562gDmDnTS3dd1LYhKliCp67+kkrzxOkY UplVkjNbCxcu5iJ955CcDEY/d3Dh7fKOGOKteRZYObh8XGR0d88DeZFis6QLd0PAKc EJhsXz81vRDerova54V3Bk5nx30nPoSpA7rhIx+I= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114695] Template argument deduction and defaulted template template parameters Date: Thu, 11 Apr 2024 23:47:38 +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.0 X-Bugzilla-Keywords: rejects-valid 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: 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=3D114695 --- Comment #2 from Andrew Pinski --- Note you don't need the extra template int argument either to reproduce the failure: ``` template struct Bar { void accept(X value) { } }; template struct Foo; template struct Foo...> : Bar... { template class B =3D ::Bar> constexpr static Bar* slice_by_type(B* self) { return self; } template void accept(Us... values) { (slice_by_type(this)->accept(values), ...); } }; int main() { Foo, Bar> foo; foo.accept(3.14f, 10); } ```=