Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8330520

linux clang build fails in os_linux.cpp with static_assert with no message is a C++17 extension

XMLWordPrintable

    • b20
    • ppc
    • linux

        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 .

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: