From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDAFF3858403; Tue, 18 Oct 2022 14:58:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDAFF3858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666105132; bh=jSpLwJ0IV06RDJrhViwFMTPnH1pl5v5ruSYXLwC6YLo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sC5i5e+xc0jWEskBKsEud0XLaLKHnCbf0fEpph9rIX6oO4mIDctErEppr0nnMDJ41 SNtq1iYuGy36WIqlLcT4BFkqb0iV2TtLFDRcM2gP4AMoFre9EEACB3q3fd9dRgQWF4 7us75FS4n6ob/tAmcp5cbglCZMQo7MZlQJexGvLQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105045] [modules] Can't deduce defaulted template parameter Date: Tue, 18 Oct 2022 14:58:49 +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: 12.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone cc 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=3D105045 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |13.0 CC| |ppalka at gcc dot gnu.org --- Comment #1 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:0101137c7c5d612c0624f9a2fd5198b302243f85 commit r13-3362-g0101137c7c5d612c0624f9a2fd5198b302243f85 Author: Patrick Palka Date: Tue Oct 18 10:57:30 2022 -0400 c++ modules: stream non-trailing default targs [PR105045] This fixes the below testcase in which we neglect to stream the default argument for T only because the subsequent parameter U doesn't also have a default argument. PR c++/105045 gcc/cp/ChangeLog: * module.cc (trees_out::tpl_parms_fini): Don't assume default template arguments must be trailing. (trees_in::tpl_parms_fini): Likewise. gcc/testsuite/ChangeLog: * g++.dg/modules/pr105045_a.C: New test. * g++.dg/modules/pr105045_b.C: New test. --- Comment #2 from Patrick Palka --- Fixed on trunk=