https://bugs.kde.org/show_bug.cgi?id=473677

--- Comment #4 from fanqu...@gmail.com ---
> Can you confirm? I don't have easy access to clang 16 or gcc 13 on Linux.

I'm still seeing build failures at dc6669cee7b557945fd41417bf531c7f5c9f1093:

clang -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector 
-Wno-format-extra-args -Wno-literal-range
-Wno-tautological-constant-out-of-range-compare -Wno-self-assign
-Wno-string-plus-int -Wno-uninitialized -Wno-unused-value  -m64    -o
badaddrvalue badaddrvalue.o  
clang -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector 
-Wno-format-extra-args -Wno-literal-range
-Wno-tautological-constant-out-of-range-compare -Wno-self-assign
-Wno-string-plus-int -Wno-uninitialized -Wno-unused-value  -m64
-Wno-free-nonheap-object    -o badfree badfree-badfree.o  
clang -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector 
-Wno-format-extra-args -Wno-literal-range
-Wno-tautological-constant-out-of-range-compare -Wno-self-assign
-Wno-string-plus-int -Wno-uninitialized -Wno-unused-value  -m64    -o badjump
badjump.o  
cxx17_aligned_new.cpp:25:5: error: no matching function for call to 'operator
delete'
    operator delete(myClass, 64U, std::align_val_t(64U));
    ^~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:155:6:
note: candidate function not viable: no known conversion from 'unsigned int' to
'std::align_val_t' for 2nd argument
void operator delete(void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:180:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete  (void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:153:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:144:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:130:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
     ^
cxx17_aligned_new.cpp:28:5: error: no matching function for call to 'operator
delete[]'
    operator delete [](myClass5, 320U, std::align_val_t(64U));
    ^~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:163:6:
note: candidate function not viable: no known conversion from 'unsigned int' to
'std::align_val_t' for 2nd argument
void operator delete[](void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:181:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete[](void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:161:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:146:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:132:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete[](void*) _GLIBCXX_USE_NOEXCEPT
     ^
cxx17_aligned_new.cpp:37:5: error: no matching function for call to 'operator
delete'
    operator delete(myClassNt, sizeof(MyClass), std::align_val_t(64U));
    ^~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:155:6:
note: candidate function not viable: no known conversion from 'unsigned long'
to 'std::align_val_t' for 2nd argument
void operator delete(void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:180:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete  (void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:153:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:144:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:130:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
     ^
cxx17_aligned_new.cpp:40:5: error: no matching function for call to 'operator
delete[]'
    operator delete [](myClass5Nt, sizeof(MyClass)*5, std::align_val_t(64U));
    ^~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:163:6:
note: candidate function not viable: no known conversion from 'unsigned long'
to 'std::align_val_t' for 2nd argument
void operator delete[](void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:181:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete[](void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:161:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:146:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:132:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete[](void*) _GLIBCXX_USE_NOEXCEPT
     ^
sized_aligned_new_delete_args.cpp:31:5: error: no matching function for call to
'operator delete'
    operator delete(mem, uninitsize);
    ^~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:180:13:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'void *' for 2nd argument; take the address of the argument
with &
inline void operator delete  (void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:144:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'const std::nothrow_t' for 2nd argument
void operator delete(void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:153:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'std::align_val_t' for 2nd argument
void operator delete(void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:130:6:
note: candidate function not viable: requires 1 argument, but 2 were provided
void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:155:6:
note: candidate function not viable: requires 3 arguments, but 2 were provided
void operator delete(void*, std::align_val_t, const std::nothrow_t&)
     ^
sized_aligned_new_delete_args.cpp:34:5: error: no matching function for call to
'operator delete[]'
    operator delete[](mem, uninitsize);
    ^~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:181:13:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'void *' for 2nd argument; take the address of the argument
with &
inline void operator delete[](void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:146:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'const std::nothrow_t' for 2nd argument
void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:161:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'std::align_val_t' for 2nd argument
void operator delete[](void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:132:6:
note: candidate function not viable: requires 1 argument, but 2 were provided
void operator delete[](void*) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:163:6:
note: candidate function not viable: requires 3 arguments, but 2 were provided
void operator delete[](void*, std::align_val_t, const std::nothrow_t&)
     ^
sized_aligned_new_delete_args.cpp:37:5: error: no matching function for call to
'operator delete'
    operator delete(mem, uninitsize, uninitalign);
    ^~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:155:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'std::align_val_t' for 2nd argument
void operator delete(void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:180:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete  (void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:153:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:144:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:130:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
     ^
sized_aligned_new_delete_args.cpp:40:5: error: no matching function for call to
'operator delete[]'
    operator delete[](mem, uninitsize, uninitalign);
    ^~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:163:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'std::align_val_t' for 2nd argument
void operator delete[](void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:181:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete[](void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:161:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:146:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:132:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete[](void*) _GLIBCXX_USE_NOEXCEPT
     ^
4 errors generated.
clang -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector 
-Wno-format-extra-args -Wno-literal-range
-Wno-tautological-constant-out-of-range-compare -Wno-self-assign
-Wno-string-plus-int -Wno-uninitialized -Wno-unused-value  -m64    -o badjump2
badjump2.o  
make[5]: *** [Makefile:4068: cxx17_aligned_new-cxx17_aligned_new.o] Error 1
make[5]: *** Waiting for unfinished jobs....
4 errors generated.
make[5]: *** [Makefile:4124:
sized_aligned_new_delete_args-sized_aligned_new_delete_args.o] Error 1
sized_aligned_new_delete_misaligned.cpp:53:5: error: no matching function for
call to 'operator delete'
    operator delete(mem, size, misalign);
    ^~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:155:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'std::align_val_t' for 2nd argument
void operator delete(void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:180:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete  (void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:153:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:144:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete(void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:130:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
     ^
sized_aligned_new_delete_misaligned.cpp:57:5: error: no matching function for
call to 'operator delete[]'
    operator delete[](mem, size, misalign);
    ^~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:163:6:
note: candidate function not viable: no known conversion from 'size_t' (aka
'unsigned long') to 'std::align_val_t' for 2nd argument
void operator delete[](void*, std::align_val_t, const std::nothrow_t&)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:181:13:
note: candidate function not viable: requires 2 arguments, but 3 were provided
inline void operator delete[](void*, void*) _GLIBCXX_USE_NOEXCEPT { }
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:161:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, std::align_val_t)
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:146:6:
note: candidate function not viable: requires 2 arguments, but 3 were provided
void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:132:6:
note: candidate function not viable: requires 1 argument, but 3 were provided
void operator delete[](void*) _GLIBCXX_USE_NOEXCEPT
     ^
2 errors generated.
make[5]: *** [Makefile:4138:
sized_aligned_new_delete_misaligned-sized_aligned_new_delete_misaligned.o]
Error 1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to