[Bug c++/94923] False positive -Wclass-memaccess with trivially copyable std::optional

2020-05-21 Thread dawid_jurek at vp dot pl
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

[Bug c++/94923] False positive -Wclass-memaccess with trivially copyable std::optional

2020-05-02 Thread dawid_jurek at vp dot pl
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.

[Bug c++/94923] New: False positive -Wclass-memaccess with trivially copyable std::optional

2020-05-02 Thread dawid_jurek at vp dot pl
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;

[Bug c++/80169] New: G++ (cc1plus) hangs forever compiling template when size of array is enormous

2017-03-24 Thread dawid_jurek at vp dot pl
: 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

[Bug libstdc++/77288] Std::experimental::optional::operator= implementation is broken in gcc 6.1

2016-08-18 Thread dawid_jurek at vp dot pl
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";

[Bug libstdc++/77288] Std::experimental::optional::operator= implementation is broken in gcc 6.1

2016-08-18 Thread dawid_jurek at vp dot pl
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=

[Bug libstdc++/77288] New: Std::experimental::optional::operator= implementation is broken in gcc 6.1

2016-08-18 Thread dawid_jurek at vp dot pl
: 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