[Bug tree-optimization/109801] -Wmaybe-uninitialized warning with -O1 on move constructor

2023-05-25 Thread szhong at perforce dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109801 --- Comment #7 from Scott Zhong --- (In reply to rguent...@suse.de from comment #6) > > Am 25.05.2023 um 20:24 schrieb pinskia at gcc dot gnu.org > > : > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109801 > > > > --- Comment #5 from A

[Bug tree-optimization/109801] -Wmaybe-uninitialized warning with -O1 on move constructor

2023-05-25 Thread szhong at perforce dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109801 --- Comment #4 from Scott Zhong --- The move constructor "steals" resources rather than make copies of them, and leave the argument in some valid but otherwise indeterminate state. It is reasonable that size_ is not initialized in the context of

[Bug c++/109738] C++20 implicit conversion is used during spaceship operator resolution instead of class's operator< for classes without spaceship operator

2023-05-11 Thread szhong at perforce dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109738 --- Comment #3 from Scott Zhong --- Is it very problematic if this is the correct behavior C++20 behaviour. For example, #include #include struct IntWrapper { int value; constexpr IntWrapper(int value): value{value} { } auto operator<=

[Bug tree-optimization/109801] -Wmaybe-uninitialized warning with -O1 on move constructor

2023-05-10 Thread szhong at perforce dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109801 --- Comment #2 from Scott Zhong --- Constructing a container and then moving it to a second container causes this warning to popup. In this case, container1 is not temporary. int main() { table container1; // (... do something with cont

[Bug c++/109801] New: -Wmaybe-uninitialized warning with -O1 on move constructor

2023-05-10 Thread szhong at perforce dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109801 Bug ID: 109801 Summary: -Wmaybe-uninitialized warning with -O1 on move constructor Product: gcc Version: 12.1.1 Status: UNCONFIRMED Severity: normal

[Bug c++/109791] New: -Wstringop-overflow warning with -O3 and _GLIBCXX_USE_CXX11_ABI=0

2023-05-09 Thread szhong at perforce dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109791 Bug ID: 109791 Summary: -Wstringop-overflow warning with -O3 and _GLIBCXX_USE_CXX11_ABI=0 Product: gcc Version: 12.1.1 Status: UNCONFIRMED Severity: normal

[Bug c++/109738] New: C++20 implicit conversion is used during spaceship operator resolution instead of class's operator< for classes without spaceship operator

2023-05-04 Thread szhong at perforce dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109738 Bug ID: 109738 Summary: C++20 implicit conversion is used during spaceship operator resolution instead of class's operator< for classes without spaceship operator Product: