[Bug libstdc++/108391] New: Operator '::operator delete(void*, size_t)' was not found when clang compiled stdlibc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 Bug ID: 108391 Summary: Operator '::operator delete(void*, size_t)' was not found when clang compiled stdlibc++ Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #9 from jinci kang --- This issue can be closed, but I don't know how to close this, can you help me to close it.Thanks.

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #11 from jinci kang --- OK redi at gcc dot gnu.org 于2023年1月13日周五 21:53写道: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 > > --- Comment #10 from Jonathan Wakely --- > I've already closed it > > -- > You are receiving

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #5 from jinci kang --- (In reply to Jakub Jelinek from comment #4) > No, but: > #include > > int main() { > void* p = ::operator new[](2); > #if __cpp_sized_deallocation >= 201309 > ::operator delete[](p, 2); > #else >

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #8 from jinci kang --- (In reply to Jakub Jelinek from comment #7) > Grep shows that clang predefines that macro if -fsized-deallocation is used. > But why that option doesn't default to on for C++14 is hard to understand. Clang

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #3 from jinci kang --- (In reply to Jonathan Wakely from comment #2) > Oh clang isn't using it, you're using it explicitly. So then that's a bug in > your code. You shouldn't use it unless the macro is defined to say that it's >

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #13 from jinci kang --- (In reply to Jonathan Wakely from comment #12) > (In reply to jinci kang from comment #8) > > Clang has a problem with ABI breaking. > > https://reviews.llvm.org/D8467 > > Ah yes. The most recent attempt to

[Bug c++/109448] New: _M_exception_object’ may be used uninitialized [-Werror=maybe-uninitialized]

2023-04-07 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109448 Bug ID: 109448 Summary: _M_exception_object’ may be used uninitialized [-Werror=maybe-uninitialized] Product: gcc Version: 12.2.1 Status: UNCONFIRMED

[Bug c++/109448] _M_exception_object’ may be used uninitialized [-Werror=maybe-uninitialized]

2023-04-07 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109448 --- Comment #1 from jinci kang --- This problem occurs under GCC12 and when compiling optimization is turned on, and only if the template T type is the empty type.

[Bug c++/110162] redundant move in initialization

2023-06-07 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110162 --- Comment #7 from jinci kang --- (In reply to Jonathan Wakely from comment #5) > (In reply to Andrew Pinski from comment #4) > > See https://gcc.gnu.org/gcc-13/porting_to.html also. > > I don't think this is related to the new rules. > >

[Bug c++/110162] redundant move in initialization

2023-06-07 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110162 --- Comment #1 from jinci kang --- # OK. $ g++ -std=c++2a -Werror -Wall main.cpp

[Bug c++/110162] New: redundant move in initialization

2023-06-07 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110162 Bug ID: 110162 Summary: redundant move in initialization Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++