public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111890] ICE in build_new_op with friend function declared inside a concept constrainted class inside a template class Date: Sun, 22 Oct 2023 21:27:23 +0000 [thread overview] Message-ID: <bug-111890-4-J65ITgyyoT@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-111890-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111890 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2023-10-22 Summary|ICE in build_new_op, friend |ICE in build_new_op with |operator in nested template |friend function declared |specialization with |inside a concept |constrained return type |constrainted class inside a | |template class --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase without any includes or any magic functions: ``` template <typename> concept t = true; template <typename> concept f = false; template <int> struct TakeView { template <typename T> class Iterator {}; template <f T> class Iterator<T> {}; template <t T> struct Iterator<T> { friend auto operator+(const Iterator &it, int) {} }; }; TakeView<1>::Iterator<float> tt; ```
next prev parent reply other threads:[~2023-10-22 21:27 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-20 8:02 [Bug c++/111890] New: ICE in build_new_op, friend operator in nested template specialization with constrained return type kcayimckaghxtnkrvg at cwmxc dot com 2023-10-22 19:13 ` [Bug c++/111890] " pinskia at gcc dot gnu.org 2023-10-22 20:40 ` pinskia at gcc dot gnu.org 2023-10-22 21:27 ` pinskia at gcc dot gnu.org [this message] 2023-10-22 21:30 ` [Bug c++/111890] ICE in tsubst_friend_function with friend function declared inside a concept constrainted class inside a template class pinskia at gcc dot gnu.org 2023-10-23 22:38 ` sjames at gcc dot gnu.org
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-111890-4-J65ITgyyoT@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).