Re:Constexpr-8cc: Compile-time C Compiler
by JoshTriplett on Friday November 18, 2016 @06:59PM
(#12991033)
I should have said, "guarantees that it can evaluate it at compile time if needed, such that you can use it where the compiler expects a compile-time constant expression". Yes, the compiler can choose to defer it until runtime in some cases.
Can it be forced to be computed at compile-time, by static_assert'ing on the result of the computation?
It doesn't guarantee that.
For example: