Closed
Description
At some point we lost the check making sure that in const context (const
/static
items, const fn
), you can only call a select few whitelisted intrinsics. Instead, you can now call all of them.
The issue is that the check happening here does not complain when there is an intrinsic in const context (unlike the checks here that complain about other kinds of function calls in const context).