public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression
[not found] <bug-71543-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-22 23:00 ` pinskia at gcc dot gnu.org
2021-08-04 17:19 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-22 23:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71543
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 10 and above reject the code:
<source>:4:28: error: placeholder type not allowed in this context
4 | concept bool C2 = requires(C1 c1) {};
| ^~
<source>:4:36: error: expected primary-expression before '}' token
4 | concept bool C2 = requires(C1 c1) {};
| ^
<source>:4:36: error: expected ';' before '}' token
4 | concept bool C2 = requires(C1 c1) {};
| ^
| ;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression
[not found] <bug-71543-4@http.gcc.gnu.org/bugzilla/>
2021-07-22 23:00 ` [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression pinskia at gcc dot gnu.org
@ 2021-08-04 17:19 ` pinskia at gcc dot gnu.org
2021-08-05 5:27 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-04 17:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71543
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |10.0
Known to work| |10.1.0
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 10+
<source>:5:28: error: placeholder type not allowed in this context
5 | concept bool C2 = requires(C1 c1) {};
| ^~
<source>:5:36: error: expected primary-expression before '}' token
5 | concept bool C2 = requires(C1 c1) {};
| ^
<source>:5:36: error: expected ';' before '}' token
5 | concept bool C2 = requires(C1 c1) {};
| ^
| ;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression
[not found] <bug-71543-4@http.gcc.gnu.org/bugzilla/>
2021-07-22 23:00 ` [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression pinskia at gcc dot gnu.org
2021-08-04 17:19 ` pinskia at gcc dot gnu.org
@ 2021-08-05 5:27 ` pinskia at gcc dot gnu.org
2021-08-05 5:28 ` pinskia at gcc dot gnu.org
2021-08-08 8:06 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05 5:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71543
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc-bugzilla at minijackson dot 33
| |mail.com
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 78511 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression
[not found] <bug-71543-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-08-05 5:27 ` pinskia at gcc dot gnu.org
@ 2021-08-05 5:28 ` pinskia at gcc dot gnu.org
2021-08-08 8:06 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05 5:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71543
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gomboc at cs dot ucr.edu
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 82768 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression
[not found] <bug-71543-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-08-05 5:28 ` pinskia at gcc dot gnu.org
@ 2021-08-08 8:06 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-08 8:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71543
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |DUPLICATE
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 91405 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-08 8:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-71543-4@http.gcc.gnu.org/bugzilla/>
2021-07-22 23:00 ` [Bug c++/71543] [concepts] ICE on ill-formed declaration of a parameter with a constrained-type-specifier in a requires expression pinskia at gcc dot gnu.org
2021-08-04 17:19 ` pinskia at gcc dot gnu.org
2021-08-05 5:27 ` pinskia at gcc dot gnu.org
2021-08-05 5:28 ` pinskia at gcc dot gnu.org
2021-08-08 8:06 ` pinskia 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).