Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Genuine question: Is there anything protecting us from an entirely new class of compiler bugs where the constexpr code and the compiled code behave differently? Is it at all possible?


> Is it at all possible?

Of course it is possible. Just consider all the registers, memory locations changed during the execution of such functions. Such side effects can affect behaviour of other code in the presence of compiler bugs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: