From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE2F23858410; Fri, 21 Jul 2023 14:09:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE2F23858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689948563; bh=ZQnyBjQ6OOt4ZUbQGsmJGKaJtNMjKCyX/hZc169lHSU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=D27up6MjQ6NLk1aeIr5NM9L1dtZAOzdQW89KTK8GJbHXXjhipkzJSE/gQ8SsPmGrr 6SJZzIOF4r34TmowjgMj0ar5aha/a1ZLRSPfIbPzlLJlU9WIzBfDxZwZfBssGeFaG0 rRCEI6tqOjNSt1ALTGcBqLHlbqrRJDKI0mfwNiYk= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110765] [13 regression] constraints on parameters of derived type in CRTP base Date: Fri, 21 Jul 2023 14:09:23 +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.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: resolution bug_status 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=3D110765 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED CC| |ppalka at gcc dot gnu.org --- Comment #1 from Patrick Palka --- Thanks for the bug report. This looks like a dup of PR109751, which is an unexpected consequence of the CWG2596 resolution (which we proactively implement IIUC). A general workaround is to turn the constrained hidden friend into a templa= te, so that its constraints don't get immediately checked upon instantiation of= its enclosing class (at which point the derived class is still incomplete). template friend constexpr auto tag_invoke(custom::to_char, derived_type const a) noexcept requires(requires { { a.to_char() }; }) { return a.to_char(); } *** This bug has been marked as a duplicate of bug 109751 ***=