[Mingw-users] The std::to_string problem is back

Back to archive index
Keith Marshall keith****@users*****
Fri Apr 19 03:27:24 JST 2019


On 18/04/19 14:40, Eli Zaretskii wrote:
> With GCC 8.2.0, the problem with using std::to_string is back, with a
> vengeance.  The following toy program, posted by Keith almost 2 years
> ago:
> 
>   #include <string>
>   int main() { std::to_string(10); }
> 
> compiles cleanly with MinGW GCC 7.3.0, but fails with GCC 8.2.0:
                                             ^^^^^^^^^^^^^^^^^^^^

Sorry, but I cannot reproduce this; that toy program compiles cleanly,
both with my production (Linux-hosted) mingw32-g++ cross-compiler, and
with a freshly installed (VirtualBox Win7 hosted) native g++-8.2.0:

$ g++ --version
g++.exe (MinGW.org GCC-8.2.0-3) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

$ echo '#include <string>
> int main() { std::to_string(10); }' | g++ -xc++ -c -fsyntax-only -
[--- no output here ---]

mingwrt and w32api are both v5.2.1; the entire VM installation is clean,
unmodified, as installed by mingw-get (today).

-- 
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/20190418/9d6528ba/attachment.sig>


More information about the MinGW-Users mailing list
Back to archive index