On 20/11/18 00:34, Keith Marshall wrote: > I deduce that this is an upstream GCC issue, resolved > from the release of GCC-7 onwards, (at least since GCC-7.3.0). FWIW, I can reproduce *identically* the same behaviour, for the OP's test case, compiling and running it natively on GNU/Linux, with differing versions of GCC; up to GCC-6.3.0, I see the behaviour which the OP states to be "unexpected"; from GCC-7.3.0 [*], I see his "expected" output. [*] I have several versions of GCC installed, but none in the interval between GCC-6.3.0 and GCC-7.3.0. -- Regards, Keith. Public key available from keys.gnupg.net Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20181121/cd867584/attachment.sig>