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
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
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<=
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
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
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
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: