public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103540] diagnosting concept depends on itself Date: Fri, 03 Dec 2021 22:10:58 +0000 [thread overview] Message-ID: <bug-103540-4-V7OqvFtJ1Y@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103540-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103540 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Please provide the code here in bugzilla, not just a URL, as requested at https://gcc.gnu.org/bugs/ #include <type_traits> template<typename N> concept StrictNodeType = requires { typename N::something; }; template<StrictNodeType N> using Int = int; template<int> struct X {using something = Int<X>; }; using ThisBreaks = Int<X<0>>; As well as the "depends on itself" error and the incomplete "because" note, there is an error pointing to exactly the right spot already: <source>:11:17: error: template constraint failure for 'template<class N> requires StrictNodeType<N> using Int = int' 11 | struct X {using something = Int<X>; }; | ^~~~~~~~~
next prev parent reply other threads:[~2021-12-03 22:10 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-03 14:05 [Bug c++/103540] New: " ich.freak at gmx dot net 2021-12-03 22:10 ` redi at gcc dot gnu.org [this message] 2021-12-05 16:04 ` [Bug c++/103540] " ich.freak at gmx dot net
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-103540-4-V7OqvFtJ1Y@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).