Description
Is your feature request related to a problem? Please describe.
Some of the compile-time validations we have in place (e.g. implicit downcasts #828) produce a lot of false positives due to internal type-promotions and would be a lot better suited to be validated at runtime.
Describe the solution you'd like
Clang provides an --fsanitize
compile flag which modifies the generated code to add runtime validations for many hard-to-catch errors and undefined behaviour (UndefinedBehaviourSanitizer)
Some checks also provide a small (sometimes optional) runtime library which is automatically linked when the flag is passed to improve error-reporting.
I think this would be a great feature to add and would allow us to provide additional, optional validation-options or improve upon existing validations that are currently in a "half-baked" state.