[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2020-05-13 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2020-05-13 Thread cvs-commit at gcc dot gnu.org
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:

[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2020-05-12 Thread redi at gcc dot gnu.org
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());

[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2020-05-12 Thread ppalka at gcc dot gnu.org
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 =

[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2020-05-12 Thread ppalka at gcc dot gnu.org
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

[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2017-02-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79706 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2017-02-24 Thread redi at gcc dot gnu.org
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 =

[Bug c++/79706] invalid delete[] expression doesn't cause substitution failure

2017-02-24 Thread redi at gcc dot gnu.org
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);