public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc-bugs at marehr dot dialup.fu-berlin.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/95371] New: [10 Regression] ICE concepts with template template parameter
Date: Wed, 27 May 2020 18:42:26 +0000 [thread overview]
Message-ID: <bug-95371-4@http.gcc.gnu.org/bugzilla/> (raw)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95371
Bug ID: 95371
Summary: [10 Regression] ICE concepts with template template
parameter
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de
Target Milestone: ---
Hallo gcc-team,
the following code worked with gcc9, but ICEs with gcc 10.1 and in trunk
```c++
template <typename...>
struct configuration {
template <template <typename...> typename query_t>
static constexpr bool exists() { return true; }
template <template <typename...> typename query_t>
void remove() requires(exists<query_t>());
};
int main() {
configuration<> cfg{};
cfg.remove<configuration>();
}
```
https://godbolt.org/z/NGU5i9
```
> g++-10 -std=c++2a
<source>: In function 'int main()':
<source>:12:31: internal compiler error: Segmentation fault
12 | cfg.remove<configuration>();
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```
next reply other threads:[~2020-05-27 18:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-27 18:42 gcc-bugs at marehr dot dialup.fu-berlin.de [this message]
2020-05-27 19:05 ` [Bug c++/95371] [10/11 Regression] ICE concepts with template template parameter since r10-3735-gcb57504a55015891 marxin at gcc dot gnu.org
2020-05-27 19:07 ` marxin at gcc dot gnu.org
2020-05-28 7:37 ` rguenth at gcc dot gnu.org
2020-05-29 20:11 ` jason at gcc dot gnu.org
2020-05-29 22:19 ` cvs-commit at gcc dot gnu.org
2020-05-30 2:11 ` cvs-commit at gcc dot gnu.org
2020-06-01 19:51 ` jason 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-95371-4@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).