public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/106464] New: [OpenMP] atomic compare – gcc wrongly accepts parenthesized expression
@ 2022-07-28 14:04 jakub at gcc dot gnu.org
2022-07-29 8:05 ` [Bug c/106464] " jakub at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-07-28 14:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106464
Bug ID: 106464
Summary: [OpenMP] atomic compare – gcc wrongly accepts
parenthesized expression
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Keywords: accepts-invalid, diagnostic, openmp
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
CC: burnus at gcc dot gnu.org, jakub at gcc dot gnu.org,
webrown.cpp at gmail dot com
Depends on: 106448
Target Milestone: ---
+++ This bug was initially created as a clone of Bug #106448 +++
As mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106448#c1
gcc incorrectly accepts:
int x;
void
bar (void)
{
#pragma omp atomic
x = (x + 6);
#pragma omp atomic
x = (x * 6);
}
in C (properly rejects it in C++).
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106448
[Bug 106448] [OpenMP] atomic compare – g++ wrongly accepts parenthesized
condition
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/106464] [OpenMP] atomic compare – gcc wrongly accepts parenthesized expression
2022-07-28 14:04 [Bug c/106464] New: [OpenMP] atomic compare – gcc wrongly accepts parenthesized expression jakub at gcc dot gnu.org
@ 2022-07-29 8:05 ` jakub at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-07-29 8:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106464
Bug 106464 depends on bug 106448, which changed state.
Bug 106448 Summary: [OpenMP] atomic compare – g++ wrongly accepts parenthesized condition
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106448
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-29 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 14:04 [Bug c/106464] New: [OpenMP] atomic compare – gcc wrongly accepts parenthesized expression jakub at gcc dot gnu.org
2022-07-29 8:05 ` [Bug c/106464] " jakub 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).