[llvm-bugs] [Bug 40576] New: Clang should turn destroying delete off by default.
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Feb 2 14:42:13 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40576
Bug ID: 40576
Summary: Clang should turn destroying delete off by default.
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Defining new names in namespace `std` is technically a non-conforming
extensions. This makes it difficult for libc++ to backport C++20 destroying
delete.
Currently Clang unconditionally defines `__cpp_impl_destroying_delete`. Unlike
aligned allocation or sized deallocation which can be turned on or off by user.
I believe we should make destroying delete act similarly. We should provide
flags for enabling destroying delete prior to C++17. After
`__cpp_impl_destroying_delete` should be defined by default.
Lets also consider whether Clang should provide destroying delete as an
extension prior to C++20.
PS. I'm concerned that if Clang always provides destroying delete but libc++
doesn't define it until C++20, then users will be dinks and define their own
`std::destroying_delete_t` as a workaround.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190202/e12fdfdc/attachment.html>
More information about the llvm-bugs
mailing list