[Bug c++/86032] New: non standard copy operator is used for empty class

2018-06-02 Thread ihorelo at mail dot ru
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ihorelo at mail dot ru Target Milestone: --- ~$ g++-7 -v Using built-in specs. COLLECT_GCC=g++-7 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1

[Bug driver/85493] decltype can use deleted constructor and deleted template function in template function

2018-04-22 Thread ihorelo at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85493 --- Comment #2 from Ihor Rudynskyi --- Summarizing: g++ 7.2 allows to write this code. struct no_def { no_def() = delete; }; template int foo() = delete; template void test() { decltype(no_def()) a1{}; decltype(no_def(1,2,3))

[Bug driver/85493] decltype can use deleted constructor and deleted function in template function

2018-04-22 Thread ihorelo at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85493 Ihor Rudynskyi changed: What|Removed |Added Summary|decltype can use deleted|decltype can use deleted

[Bug driver/85493] New: decltype can use deleted constructor in template function

2018-04-22 Thread ihorelo at mail dot ru
Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: ihorelo at mail dot ru Target Milestone: --- decltype can use deleted constructor in template function struct no_def { no_def() = delete; }; template void test() { decltype(no_def