public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ppalka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96840] [11 Regression] Recursive substitution in constrained commutative operator Date: Mon, 01 Feb 2021 17:58:35 +0000 [thread overview] Message-ID: <bug-96840-4-ufKdlO9LKC@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-96840-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96840 Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|WAITING |RESOLVED --- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> --- With the above patch we now detect and diagnose the self-recursive satisfaction in the testcase: 96840.C: In substitution of ‘template<class T> requires C<T, Rep> void operator*(T, Int<int>) [with T = int]’: 96840.C:1:64: required by substitution of ‘template<class T> requires C<T, Rep> void operator*(Int<int>, T) [with T = int]’ 96840.C:6:28: required from here 96840.C:1:37: required for the satisfaction of ‘C<T, Rep>’ [with T = Int<int>; Rep = int] 96840.C:1:41: in requirements with ‘T t’, ‘U u’ [with U = int; T = Int<int>] 96840.C:1:41: error: satisfaction of atomic constraint ‘requires(T t, U u) {t * u;} [with U = Rep; T = T]’ depends on itself 1 | template <class T, class U> concept C = requires(T t, U u) { t * u; }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ So I suppose we can mark this PR as resolved.
next prev parent reply other threads:[~2021-02-01 17:58 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-29 0:29 [Bug c++/96840] New: " johelegp at gmail dot com 2020-08-31 6:31 ` [Bug c++/96840] [11 Regression] " rguenth at gcc dot gnu.org 2020-09-28 15:33 ` ppalka at gcc dot gnu.org 2020-10-16 12:05 ` rguenth at gcc dot gnu.org 2020-12-18 3:36 ` cvs-commit at gcc dot gnu.org 2021-02-01 17:58 ` ppalka at gcc dot gnu.org [this message] 2021-12-30 14:06 ` johelegp at gmail dot com 2021-12-30 14:23 ` johelegp at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-96840-4-ufKdlO9LKC@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).