public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101297] New: Spurious comma accepted at the end of #pragma omp atomic
@ 2021-07-02 12:22 jakub at gcc dot gnu.org
  2021-07-02 12:23 ` [Bug c/101297] " jakub at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-07-02 12:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101297

            Bug ID: 101297
           Summary: Spurious comma accepted at the end of #pragma omp
                    atomic
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

int i;

void
foo (void)
{
  #pragma omp atomic update,    /* { dg-error "expected end of line before ','
token" } */
  i++;
  #pragma omp atomic update,,   /* { dg-error "expected end of line before ','
token" } */
  i++;
}

diagnoses with -fopenmp only the second error and not the first one (seems both
clang and ICC suffer from the same bug though).

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-02 19:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 12:22 [Bug c/101297] New: Spurious comma accepted at the end of #pragma omp atomic jakub at gcc dot gnu.org
2021-07-02 12:23 ` [Bug c/101297] " jakub at gcc dot gnu.org
2021-07-02 12:29 ` jakub at gcc dot gnu.org
2021-07-02 19:58 ` cvs-commit 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).