[Bug libstdc++/54025] atomic<chrono::duration> won't compile: chrono::duration::duration() is not C++11 compliant

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 19 12:34:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54025

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-19 12:34:19 UTC ---
Oh, I think our current code might be intentional, we should ask Benjamin:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3303.html

See c++std-lib-32464 for rational for the std semantics i.e.
duration<trivial_type> is a trivial type, and leaves the rep uninitialized.



More information about the Gcc-bugs mailing list