llvm-project
0bbe1b30 - [clang] Forbid reinterpret_cast of function pointers in constexpr. (#150557)

Commit
145 days ago
[clang] Forbid reinterpret_cast of function pointers in constexpr. (#150557) This has been explicitly forbidden since C++11, but somehow the edge case of converting a function pointer to void* using a cast like `(void*)f` wasn't handled. Fixes #150340 .
Author
Parents
Loading