https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94923
--- Comment #6 from dawid_jurek at vp dot pl ---
I quickly tried trunk and all false positive warnings vanished.
Thanks Martin.
Regards,
Dawid
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94923
--- Comment #2 from dawid_jurek at vp dot pl ---
Yeah, that's the correct reproducer of issue I reported.
I noticed missing bracket after pasting it from godbolt but unfortunately
couldn't edit my comment after posting.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dawid_jurek at vp dot pl
Target Milestone: ---
Consider following C++ snippet:
static_assert(std::is_trivially_copyable_v>);
static void not_ok() {
std::optional value;
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dawid_jurek at vp dot pl
Target Milestone: ---
0. Gcc version.
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/lto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77288
--- Comment #4 from dawid_jurek at vp dot pl ---
After applying my patch code snippet you provided compile, run and works as
expected. To be more precise I'm talking about such snippet:
std::experimental::optional os;
os = "meow";
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77288
--- Comment #1 from dawid_jurek at vp dot pl ---
Created attachment 39471
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39471&action=edit
Fix bug in operator=
: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dawid_jurek at vp dot pl
Target Milestone: ---
Created attachment 39470
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39470&action=edit
Unit tests trigger