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
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))
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
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