https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67669
TC <rs2740 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rs2740 at gmail dot com --- Comment #5 from TC <rs2740 at gmail dot com> --- I can reproduce this with both MSYS2/MinGW64 GCC 5.2.0 and Clang 3.7+libc++, so not a GCC problem. This also reproduces with Visual Studio 2015. This is likely caused by a bug in Microsoft's C runtime library. Presumably Borland C++ Builder has its own C runtime.