public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106964] New: Requires expression produces incorrect result with templated lambda
@ 2022-09-18 19:32 eric41293 at comcast dot net
2022-09-20 10:13 ` [Bug c++/106964] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: eric41293 at comcast dot net @ 2022-09-18 19:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106964
Bug ID: 106964
Summary: Requires expression produces incorrect result with
templated lambda
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: eric41293 at comcast dot net
Target Milestone: ---
Perhaps related bugs: PR99546, PR105222, PR105494.
The following
template<class T> concept structural = requires { []<T>{}; };
static_assert(!structural<void>);
fails compilation with
<source>:2:15: error: static assertion failed
2 | static_assert(!structural<void>);
|
using x86-64 gcc 12.2 on Godbolt with -std=c++20.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/106964] Requires expression produces incorrect result with templated lambda
2022-09-18 19:32 [Bug c++/106964] New: Requires expression produces incorrect result with templated lambda eric41293 at comcast dot net
@ 2022-09-20 10:13 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-20 10:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106964
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Keywords|rejects-valid |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-09-20
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-20 10:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-18 19:32 [Bug c++/106964] New: Requires expression produces incorrect result with templated lambda eric41293 at comcast dot net
2022-09-20 10:13 ` [Bug c++/106964] " redi 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).