[Bug c++/85848] Incorrect handling of explicit casting to move-only types

2018-05-20 Thread kot.tom97 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85848 --- Comment #4 from Tom Westerhout --- A few configurations on which the attached example fails to compile: $ g++-6 -v Using built-in specs. COLLECT_GCC=g++-6 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target:

[Bug c++/85848] Incorrect handling of explicit casting to move-only types

2018-05-20 Thread kot.tom97 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85848 --- Comment #3 from Tom Westerhout --- Created attachment 44153 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44153=edit Preprocessed source Result after preprocessing test.cpp

[Bug c++/85848] Incorrect handling of explicit casting to move-only types

2018-05-20 Thread kot.tom97 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85848 --- Comment #2 from Tom Westerhout --- Created attachment 44152 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44152=edit Sample code triggering the error

[Bug c++/85848] New: Incorrect handling of explicit casting to move-only types

2018-05-20 Thread kot.tom97 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kot.tom97 at gmail dot com Target Milestone: --- See https://stackoverflow.com/questions/50430149/clang-vs-gcc-when-static-casting-to-a-move-only-type.

[Bug c++/71504] bogus error: accessing value through a glvalue in a constant expression

2017-07-14 Thread kot.tom97 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71504 Tom Westerhout changed: What|Removed |Added CC||kot.tom97 at gmail dot com --- Comment