While using VDT while using the gcc undefined behavior compiles flag, we get the report
vdt/exp.h:144:38: runtime error: left shift of negative value -109
Which is
https://github.com/dpiparo/vdt/blob/master/include/exp.h#L144
The happens when calling vdt::fast_expf with the value
vdt::fast_expf (initial_x=-163.483994)
The C++ standard does say that left shifting a negative number is undefined.
While using VDT while using the gcc undefined behavior compiles flag, we get the report
Which is
https://github.com/dpiparo/vdt/blob/master/include/exp.h#L144
The happens when calling
vdt::fast_expfwith the valueThe C++ standard does say that left shifting a negative number is undefined.