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

Build failure with clang on linux and AIX after switch to C++17

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 26
    • 26
    • hotspot
    • None
    • b15

      After JDK-8314488 (using C++17) we get build failures on linux when using clang as the compiler. For example:

      {@code}
      /usr/include/stdio.h:352:12: error: exception specification in declaration does not match previous declaration
        352 | extern int sprintf (char *__restrict __s,
            | ^
      /home/kab/gitsb/forbid-sprintf-warning/jdk/open/src/hotspot/share/utilities/forbiddenFunctions.hpp:61:23: note: previous declaration is here
         61 | FORBID_C_FUNCTION(int sprintf(char*, const char*, ...), "use os::snprintf");
            | ^
      {@code}

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: