public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96256] New: Invalid consteval call not rejected
@ 2020-07-21 1:48 johelegp at gmail dot com
2021-07-27 23:28 ` [Bug c++/96256] " pinskia at gcc dot gnu.org
2022-01-17 10:27 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: johelegp at gmail dot com @ 2020-07-21 1:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96256
Bug ID: 96256
Summary: Invalid consteval call not rejected
Product: gcc
Version: 11.0
URL: https://godbolt.org/z/zeEY96
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: johelegp at gmail dot com
CC: johelegp at gmail dot com
Target Milestone: ---
See https://godbolt.org/z/zeEY96.
```C++
struct X
{
consteval X operator+() const { return {}; }
};
consteval void g(X) { }
void f()
{
X x;
+x;
g(x);
}
```
This might generalize https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95593.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/96256] Invalid consteval call not rejected
2020-07-21 1:48 [Bug c++/96256] New: Invalid consteval call not rejected johelegp at gmail dot com
@ 2021-07-27 23:28 ` pinskia at gcc dot gnu.org
2022-01-17 10:27 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-27 23:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96256
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|https://godbolt.org/z/zeEY9 |
|6 |
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang crashes on this code :).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/96256] Invalid consteval call not rejected
2020-07-21 1:48 [Bug c++/96256] New: Invalid consteval call not rejected johelegp at gmail dot com
2021-07-27 23:28 ` [Bug c++/96256] " pinskia at gcc dot gnu.org
@ 2022-01-17 10:27 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-17 10:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96256
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang nows accepts this code like GCC does.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-17 10:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 1:48 [Bug c++/96256] New: Invalid consteval call not rejected johelegp at gmail dot com
2021-07-27 23:28 ` [Bug c++/96256] " pinskia at gcc dot gnu.org
2022-01-17 10:27 ` 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).