[Bug c++/104160] Wrongly allowed: Function argumentin constant expression
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 21 21:14:52 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104160
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, MSVC accepts this code just like GCC.
ICC does too.
Only clang rejects it.
If Value was not marked as a constexpr, then GCC rejects it too.
I do have wonder if clang is right to reject this or not.
More information about the Gcc-bugs
mailing list