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 libstdc++/100577] [11/12 Regression] Unhelpful diagnostics for ill-formed call to partially applied range adaptor object
Date: Thu, 13 May 2021 02:19:34 +0000	[thread overview]
Message-ID: <bug-100577-4-FL7VZ3eCqQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100577-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100577

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |10.1.0, 10.2.0, 10.3.0
           Keywords|                            |diagnostic
   Target Milestone|---                         |11.2
      Known to fail|                            |11.1.0

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Diagnostics for ill-formed calls to adaptor pipelines regress similarly:

#include <ranges>

int main() {
  extern int x[100];
  (std::views::join | std::views::join)(x);
}

<stdin>: In function ‘int main()’:
<stdin>:5:40: error: use of deleted function ‘constexpr auto
std::ranges::views::__adaptor::_Pipe<_Lhs, _Rhs>::operator()(_Range&&) const &&
[with _Range = int (&)[100]; _Lhs = std::ranges::views::_Join; _Rhs = 
std::ranges::views::_Join]’
In file included from <stdin>:1:
/home/patrick/code/gcc-master/libstdc++-v3/include/std/ranges:901:9: note:
declared here
  901 |         operator()(_Range&& __r) const && = delete;
      |         ^~~~~~~~

  reply	other threads:[~2021-05-13  2:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-13  2:16 [Bug libstdc++/100577] New: " ppalka at gcc dot gnu.org
2021-05-13  2:19 ` ppalka at gcc dot gnu.org [this message]
2021-05-13  3:04 ` [Bug libstdc++/100577] " ppalka at gcc dot gnu.org
2021-05-13  3:12 ` ppalka at gcc dot gnu.org
2021-06-03 13:50 ` cvs-commit at gcc dot gnu.org
2021-06-10 21:29 ` cvs-commit at gcc dot gnu.org
2021-06-10 21:39 ` ppalka 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-100577-4-FL7VZ3eCqQ@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: link
Be 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).