Updated: gcc-7.3.0-2 (x86/x86_64)

JonY 10walls@gmail.com
Tue Jun 5 23:28:00 GMT 2018


On 05/29/2018 05:32 PM, Alberto Escrig Vidal wrote:
> 
> Thanks so much Jon!
> 
> 
> I have noticed a couple of issues with g++-7.
> 
> 
> 1)
> 
> 
> #include <string>
> #include <iostream>
> #include <sstream>
> 
> int main()
> {
> std::string Str;
> std::stringstream ss("hello");
> std::getline(ss,Str);
> std::cout << Str;
> 
> return 0;
> }
> 
> Compiling the above program with:
> 
> g++ -g -std=c++17 foo.cpp
> 
> Compiles just fine, but aborts when running it.
> 
> Running it with gdb:
> 
> Program received signal SIGABRT, Aborted.
> 0x6326126a in cygstdc++-6!_ZNSs7reserveEj () from /usr/bin/cygstdc++-6.dll

I suspect --enable-fully-dynamic-string may affect it, but this breaks
libstdc++ ABI. I'll test it soon-ish.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180605/e0626718/attachment.sig>


More information about the Cygwin mailing list