From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5BF13858427; Sun, 10 Dec 2023 17:01:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5BF13858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702227715; bh=tnbeBzXb+rJd/Exg+cPMQ/QhC+sUQGYO9F9FfyocX7Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Hf1BFt/4Xct8dugwDilDF8dISn8F+2BxIE7qBhJIr7Um3L4Bgr9+TwV1mp8/WMn13 1SDuqk/zFROWPyXBD6jtMW69Kace349qQICv0RIY50YFFCt2lklU6MtbTM2jz7EELP tA9+80NVI1fcMFY/0EQZnScV90DvDECCXl3XZJtQ= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/17272] DW_TAG_GNU_template_parameter_pack Date: Sun, 10 Dec 2023 17:01:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D17272 --- Comment #17 from Hannes Domani --- (In reply to David Blaikie from comment #16) > For types you can't have more than one pack, I think: > $ clang++-tot -std=3Dc++2a pack_type.cpp=20 > pack_type.cpp:1:22: error: template parameter pack must be the last templ= ate > parameter > 1 | template > | ^ > 1 error generated. >=20 > But you can have multiple packs in a function template - and I think it'd= be > good to represent it correctly - since there can be two functions, for > instance, with the same parameters but packed differently (eg: > `template void f1();` you could have > `f1` where the int is in the first pack (and the second pack is empt= y) > or the other way around, and those are distinct overloads) Could you share an example where the 2nd pack is not empty, because I could= not figure out how to do it? --=20 You are receiving this mail because: You are on the CC list for the bug.=