[Openmp-commits] [PATCH] D131477: [openmp] Fix enumeration build issue for openmp library

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Aug 9 03:26:54 PDT 2022


JonChesterfield added a comment.

Ah. So C++ have decided writing a value outside the range of initial values is UB. C still thinks it's an int afaik. So that's a somewhat gratuitous break for shared headers. https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2338

Whatever, workaround is trivial. The enum needs to gain a field `_unused_work_around_D2338 = INT32_MAX`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131477/new/

https://reviews.llvm.org/D131477



More information about the Openmp-commits mailing list