[Bug tree-optimization/107386] 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]

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 24 19:45:20 GMT 2022


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Well, even though this warning is not correct, it can happen that one wants to
define "extended" enum values by multiplying the existing (implicit) values and
would be surprised that 0 * some_value == 0.


More information about the Gcc-bugs mailing list