public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/87536] Illegal recursive concept leads to compiler ICE
[not found] <bug-87536-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-08 7:36 ` pinskia at gcc dot gnu.org
2021-12-02 12:21 ` redi at gcc dot gnu.org
2024-02-16 18:24 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-08 7:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87536
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-08-08
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With -std=c++20 I get crash:
<source>:3:6: warning: C++20 concept definition syntax is 'concept <name> =
<expr>'
3 | bool concept X = X<T>;
| ^~~~~~~
g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/87536] Illegal recursive concept leads to compiler ICE
[not found] <bug-87536-4@http.gcc.gnu.org/bugzilla/>
2021-08-08 7:36 ` [Bug c++/87536] Illegal recursive concept leads to compiler ICE pinskia at gcc dot gnu.org
@ 2021-12-02 12:21 ` redi at gcc dot gnu.org
2024-02-16 18:24 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-12-02 12:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87536
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2021-08-08 00:00:00 |2021-12-2
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ah yes, I "fixed" the code to use C++20 syntax, by removing the "bool". Like
that, it's diagnosed as ill-formed.
With -std=c++17 -fconcepts the "bool concept" or "concept bool" version ICEs.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/87536] Illegal recursive concept leads to compiler ICE
[not found] <bug-87536-4@http.gcc.gnu.org/bugzilla/>
2021-08-08 7:36 ` [Bug c++/87536] Illegal recursive concept leads to compiler ICE pinskia at gcc dot gnu.org
2021-12-02 12:21 ` redi at gcc dot gnu.org
@ 2024-02-16 18:24 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2024-02-16 18:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87536
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I no longer get any crashes here:
$ xg++ -c -std=c++20 87536.C
87536.C:2:6: error: C++20 concept definition syntax is ‘concept <name> =
<expr>’
2 | bool concept X = X<T>;
| ^~~~~~~
$ xg++ -c -std=c++17 87536.C -fconcepts-ts
cc1plus: note: ‘-fconcepts-ts’ is deprecated and will be removed in GCC 15;
please convert your code to C++20 concepts
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-16 18:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-87536-4@http.gcc.gnu.org/bugzilla/>
2021-08-08 7:36 ` [Bug c++/87536] Illegal recursive concept leads to compiler ICE pinskia at gcc dot gnu.org
2021-12-02 12:21 ` redi at gcc dot gnu.org
2024-02-16 18:24 ` mpolacek at gcc dot gnu.org
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).