https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
Patrick Palka changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
--- Comment #6 from CVS Commits ---
The master branch has been updated by Patrick Palka :
https://gcc.gnu.org/g:4924293a62ee797310dd448e545118afd5aebb3f
commit r11-373-g4924293a62ee797310dd448e545118afd5aebb3f
Author: Patrick Palka
Date: Wed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
--- Comment #5 from Jonathan Wakely ---
Ah good point.
struct A {
void operator delete(void*) = delete;
void operator delete[](void*) = delete;
};
A* f();
A* f2();
using type1 = decltype(delete f());
using type2 = decltype(delete[] f2());
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
--- Comment #4 from Patrick Palka ---
(In reply to Jonathan Wakely from comment #1)
> Probably the same issue:
>
> struct A {
> void operator delete(void*) = delete;
> void operator delete[](void*) = delete;
> };
>
> using type1 = decltype(
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
Patrick Palka changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
Jonathan Wakely changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCON
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
--- Comment #2 from Jonathan Wakely ---
The first testcase does fail to compile, but for the wrong reason:
e.cc: In instantiation of ‘typename enable_if<_Array, decltype (delete []
ck_delete::__p)>::type ck_delete(_Yp*) [with bool _Array = true
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706
--- Comment #1 from Jonathan Wakely ---
Probably the same issue:
struct A {
void operator delete(void*) = delete;
void operator delete[](void*) = delete;
};
using type1 = decltype(delete (A*)0);
using type2 = decltype(delete[] (A*)0);
Neit