From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0502838582B3; Mon, 24 Oct 2022 19:17:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0502838582B3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666639071; bh=SgjB3EtJDiBQ++c3k9UF+MN4CxT3vc6FGb4ensBo2Qk=; h=From:To:Subject:Date:From; b=rMdsOosx/6in3BUCgSEgUG86lX85HCK9WzzWZfHn2sYKo+dl6xFmpT2A0WcuOz1sP bUQBqjkQjh2gzLw7kwdzSm/1PQUbvWXcvhNriubrIS+VUAluSHMdR8abjD/oSkTFLo Svm7I4n34bj43ZPn36gWipkPiN1lj1RoMwQ7JD7E= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107386] New: gcc/tree-core.h:588:3: error: element 'OMP_MEMORY_ORDER_UNSPECIFIED' has been implicitly assigned 0 which another element has been assigned [-Werror,-Wduplicate-enum] Date: Mon, 24 Oct 2022 19:17:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107386 Bug ID: 107386 Summary: gcc/tree-core.h:588:3: error: element 'OMP_MEMORY_ORDER_UNSPECIFIED' has been implicitly assigned 0 which another element has been assigned [-Werror,-Wduplicate-enum] Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Found by clang (w/ -Wduplicate-enum): /home/marxin/Programming/gcc/gcc/tree-core.h:588:3: error: element 'OMP_MEMORY_ORDER_UNSPECIFIED' has been implicitly assigned 0 which another element has been assigned [-Werror,-Wduplicate-enum] OMP_MEMORY_ORDER_UNSPECIFIED, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marxin/Programming/gcc/gcc/tree-core.h:595:3: note: element 'OMP_FAIL_MEMORY_ORDER_UNSPECIFIED' also has value 0 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED =3D OMP_MEMORY_ORDER_UNSPECIFIED * 8, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=