From: Stephan Bergmann <sbergman@redhat.com>
To: libstdc++@gcc.gnu.org
Cc: Patrick Palka <ppalka@redhat.com>
Subject: Re: <ranges> error: requires clause differs in template redeclaration
Date: Mon, 13 Feb 2023 14:06:18 +0100 [thread overview]
Message-ID: <bb95149d-fab1-636a-e093-145fcbe97585@redhat.com> (raw)
In-Reply-To: <1ea8bea9-bf48-7e8a-8c1f-e9ac747c7ab7@redhat.com>
On 13/02/2023 13:39, Stephan Bergmann wrote:
> On 13/02/2023 12:14, Stephan Bergmann wrote:
>> 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>
>>> ^
>
> ah no, there's multiple chunk_view with different requires clauses, so
> this first one rather looks like a Clang bug
(see <https://github.com/llvm/llvm-project/issues/60704> "Clang 'error:
requires clause differs in template redeclaration' on out-of-class
definition of class template specialization member")
next prev parent reply other threads:[~2023-02-13 13:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 11:14 Stephan Bergmann
2023-02-13 12:39 ` Stephan Bergmann
2023-02-13 13:06 ` Stephan Bergmann [this message]
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=bb95149d-fab1-636a-e093-145fcbe97585@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).