https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92411

--- Comment #4 from Will Wray <wjwray at gmail dot com> ---
I mis-read this so was too hasty in suggesting "can be closed".
The standard states that a expression evaluation fails to be a constant
expression if it evaluates "reinterpret_cast" (i.e., by named token,
not by the actual strength of cast required, so seems to be the intent).
It's a 50/50 split with gcc & icc accepting, clang and msvc rejecting
https://gcc.godbolt.org/z/drdT66

Reply via email to