[PATCH] D153702: [Clang] Implement P2738R1 - constexpr cast from void*
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 26 15:13:22 PDT 2023
shafik added inline comments.
================
Comment at: clang/test/CXX/expr/expr.const/p5-26.cpp:13
+ (void)static_cast<T*>(a); //cxx23-note {{cast from 'void *' is not allowed in a constant expression in C++ standards before C++2c}}
+ (void)static_cast<const T*>(a);
+ (void)static_cast<volatile T*>(a);
----------------
Why no diagnostic on this line and the next?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153702/new/
https://reviews.llvm.org/D153702
More information about the cfe-commits
mailing list