https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107386
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 = OMP_MEMORY_ORDER_UNSPECIFIED * 8, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~