From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4759F3858C5E; Mon, 1 May 2023 11:58:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4759F3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682942302; bh=kryplJzqAg7k/kNPxjg9RSM/R5BxDfyCTGYtI6wbLR8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p3V8FI+J02Y+rV51Qky5urOpKt/BTzRwIchqDk4Li8i2lslZaJy1qKV+oaTaiRtty KSes16fRCLMF5Spao9LdF80/t6AmXjpVKiLVovMpktIW+oLorG+xcD0KK3uLWLktff PRif2/ZduQv+qXuBLRAj4e5EEFD/Apd5H6pCQDrA= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109683] [13/14 Regression] False cyclic dependency error reported for constraint Date: Mon, 01 May 2023 11:58:21 +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.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also assigned_to cf_reconfirmed_on bug_status everconfirmed keywords 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=3D109683 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D105797 Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot g= nu.org Last reconfirmed| |2023-05-01 Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Keywords| |rejects-valid Target Milestone|--- |13.2 CC| |ppalka at gcc dot gnu.org --- Comment #2 from Patrick Palka --- Thanks for the bug report. Started with r13-980-gdf4f95dbd4764f which made function parameters used in a constraint no longer induce a dependency on a= ll contextual template parameters. So another workaround would be to make the constructor's constraints explic= itly depend on the second template parameter of the class: template struct VariantConstructors { VariantConstructors(T&& t) requires(requires { T(t); typename U; }); }; ...=