brevzin / cpp_proposals

My WG21 proposals
33 stars 22 forks source link

Suggestion for removing UB in the library wording of P2996 #151

Closed frederick-vs-ja closed 1 month ago

frederick-vs-ja commented 4 months ago

"Shall" in the library wording means that the behavior is undefined when such a requirement is not met by default.

Perhaps we just want ill-formedness, and "non-constant library call" ([defns.nonconst.libcall]) looks appropriate to me since these functions are all consteval.