[PATCH] D34574: [Sema] Disable c++17 aligned new and delete operators if not implemented in the deployment target's c++ standard library

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 25 17:45:15 PDT 2017


ahatanak added a comment.

I suppose it's possible to define a new driver option that can be used to tell clang to annotate the implicit declarations with an availability attribute, which will enable the link time error to be caught at compile time. Alternatively, it's also possible to put the availability attributes by default and use the driver option to remove the attributes, but this will cause clang to error out on a valid code when the users have provided their own implementations of the aligned operators.


https://reviews.llvm.org/D34574





More information about the cfe-commits mailing list