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

            Bug ID: 117731
           Summary: [15 Regression libsanitizer builds not as c++17 even
                    though it uses c++17 features
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
  Target Milestone: ---

Looks like the recent merge from upstream now says libsanitizer is c++17 but it
is still built with -std=gnu++14 . So we get these warnings:

../../../../libsanitizer/asan/asan_interceptors.cpp: In function ‘char*
___interceptor_strcpy(char*, const char*)’:
../../../../libsanitizer/asan/asan_interceptors.cpp:554:6: warning: ‘if
constexpr’ only available with ‘-std=c++17’ or ‘-std=gnu++17’
[-Wc++17-extensions]
  554 |   if constexpr (SANITIZER_APPLE) {
      |      ^~~~~~~~~

Reply via email to