https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98566
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That seems to be a bug in the testcase, only C++14 and later has sized deallocation, so C++11 will only have operator delete (void *) and not be ambiguous, while C++14 will have operator delete (void *) and operator delete (void *, std::size_t) and C++17 adds to that also operator delete (void *, std::align_val_t) and operator delete (void *, std::size_t, std::align_val_t). So, either the testcase should be dg-do compile { target c++14 }, or the dg-error lines should be { target c++14 }, I think the latter is preferrable.