efriedma added a comment.

The C++ standard just says "An integer literal of type std::size_t whose value 
is the alignment guaranteed by a call to operator new(std::size_t) or operator 
new[](std::size_t)."  I would take that in the obvious sense, that any pointer 
returned by operator new must have alignment `__STDCPP_DEFAULT_NEW_ALIGNMENT__`.

Granted, I can see how that might not be the intent, given that `alignof(T) >= 
sizeof(T)` for all C++ types.


Repository:
  rC Clang

https://reviews.llvm.org/D50683



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D50683: [... Pirama Arumuga Nainar via Phabricator via cfe-commits
    • [PATCH] D506... Eli Friedman via Phabricator via cfe-commits
    • [PATCH] D506... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D506... Eli Friedman via Phabricator via cfe-commits
    • [PATCH] D506... Pirama Arumuga Nainar via Phabricator via cfe-commits

Reply via email to