-
Bug
-
Resolution: Fixed
-
P4
-
23
-
b20
-
ppc
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8338665 | 21.0.5 | Varada M | P4 | Resolved | Fixed | b04 |
We run into the following build error when compiling on Linux with the clang toolchain
jdk/src/hotspot/os/linux/os_linux.cpp:2975:65: error: 'static_assert' with no message is a C++17 extension [-Werror,-Wc++17-extensions]
static_assert(MADV_POPULATE_WRITE == MADV_POPULATE_WRITE_value);
Currently it is not clear when "8314488: Compile the JDK as C++17" will be in the codebase so better fix the static_assert .
jdk/src/hotspot/os/linux/os_linux.cpp:2975:65: error: 'static_assert' with no message is a C++17 extension [-Werror,-Wc++17-extensions]
static_assert(MADV_POPULATE_WRITE == MADV_POPULATE_WRITE_value);
Currently it is not clear when "8314488: Compile the JDK as C++17" will be in the codebase so better fix the static_assert .
- backported by
-
JDK-8338665 linux clang build fails in os_linux.cpp with static_assert with no message is a C++17 extension
- Resolved
- links to
-
Commit openjdk/jdk/4b55fe57
-
Commit(master) openjdk/jdk21u-dev/fee20949
-
Review openjdk/jdk/18816
-
Review(master) openjdk/jdk21u-dev/876