From: Stephan Bergmann <sbergman@redhat.com>
To: libstdc++@gcc.gnu.org
Cc: Patrick Palka <ppalka@redhat.com>
Subject: <ranges> error: requires clause differs in template redeclaration
Date: Mon, 13 Feb 2023 12:14:35 +0100 [thread overview]
Message-ID: <ef2a3bb5-86aa-8c6a-a6d1-8a508ca2c690@redhat.com> (raw)
I just noticed that Clang -std=c++2b complains (and I assume rightly so)
about <ranges>
> .../lib/gcc/x86_64-pc-linux-gnu/13.0.1/../../../../include/c++/13.0.1/ranges:6123:14: error: requires clause differs in template redeclaration
> requires forward_range<_Vp>
> ^
> .../lib/gcc/x86_64-pc-linux-gnu/13.0.1/../../../../include/c++/13.0.1/ranges:5822:14: note: previous template declaration is here
> requires input_range<_Vp>
> ^
and
> .../lib/gcc/x86_64-pc-linux-gnu/13.0.1/../../../../include/c++/13.0.1/ranges:7456:14: error: requires clause differs in template redeclaration
> requires __detail::__is_integer_like<_Bound> || same_as<_Bound, unreachable_sentinel_t>
> ^
> .../lib/gcc/x86_64-pc-linux-gnu/13.0.1/../../../../include/c++/13.0.1/ranges:7391:14: note: previous template declaration is here
> requires (is_object_v<_Tp> && same_as<_Tp, remove_cv_t<_Tp>>
> ^
that had been added with
<https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5d84a4418aa962a715dc74998fea2a7de9d4042c>
"libstdc++: Implement ranges::chunk_view from P2442R1" and
<https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=bfcd9f84531fa99e9d00efd8bcfd3c8ac16fa360>
"libstdc++: Implement ranges::repeat_view from P2474R2", respectively.
next reply other threads:[~2023-02-13 11:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 11:14 Stephan Bergmann [this message]
2023-02-13 12:39 ` Stephan Bergmann
2023-02-13 13:06 ` Stephan Bergmann
2023-02-13 13:06 ` Jonathan Wakely
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=ef2a3bb5-86aa-8c6a-a6d1-8a508ca2c690@redhat.com \
--to=sbergman@redhat.com \
--cc=libstdc++@gcc.gnu.org \
--cc=ppalka@redhat.com \
/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).