public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99511] New: default arguments are allowed for parameters of a requires expression
@ 2021-03-10 9:21 hewillk at gmail dot com
2021-03-10 16:09 ` [Bug c++/99511] " mpolacek at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: hewillk at gmail dot com @ 2021-03-10 9:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99511
Bug ID: 99511
Summary: default arguments are allowed for parameters of a
requires expression
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
The following code should not be accepted by gcc-10, since default arguments
are not allowed for parameters of a requires expression.
template <typename T>
concept C = requires (T = {}) { true; };
(goldbot: https://godbolt.org/z/fM88qb)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/99511] default arguments are allowed for parameters of a requires expression
2021-03-10 9:21 [Bug c++/99511] New: default arguments are allowed for parameters of a requires expression hewillk at gmail dot com
@ 2021-03-10 16:09 ` mpolacek at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-03-10 16:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99511
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Ever confirmed|0 |1
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2021-03-10
Status|UNCONFIRMED |NEW
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed: [expr.prim.req]p4: "A local parameter of a requires-expression shall
not have a default argument."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-10 16:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 9:21 [Bug c++/99511] New: default arguments are allowed for parameters of a requires expression hewillk at gmail dot com
2021-03-10 16:09 ` [Bug c++/99511] " 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).