[Bug c++/82496] Optimization breaks duration_cast
jeff.benshetler at stackpath dot com
gcc-bugzilla@gcc.gnu.org
Mon Oct 9 17:01:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82496
Jeff Benshetler <jeff.benshetler at stackpath dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jeff.benshetler at stackpath dot c
| |om
--- Comment #1 from Jeff Benshetler <jeff.benshetler at stackpath dot com> ---
Created attachment 42332
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42332&action=edit
Preprocessed file that triggers the bug.
When compiled without optimization and run, running the executable produces the
following correct output:
deltaT=2.00275
When compiled with any level of optimization (-O1 or greater), running the
executable produces the following erroneous output:
deltaT=0
More information about the Gcc-bugs
mailing list