Rewording note note_constexpr_invalid_cast
The diagnostics here are correct, but the note is really silly. It talks about reinterpret_cast in C code. So rewording it for c mode by using another %select{}. ``` int array[(long)(char *)0]; ``` previous note: ``` cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression ``` reworded note: ``` this conversion is not allowed in a constant expression ``` Differential Revision: https://reviews.llvm.org/D133194
Loading
Please sign in to comment