Updated: gcc-7.3.0-2 (x86/x86_64)
JonY
10walls@gmail.com
Wed May 30 16:14: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
>
> The program works fine if compiled with -std=c++14.
>
$ c++filt _ZNSs7reserveEj
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::reserve(unsigned int)
Does -static change anything?
> 2)
>
> This program fails to compile (it also failed with g++-6).
>
> #include <shared_mutex>
>
> int main() {}
>
I'm guessing Cygwin does not support the functionality declared in the
headers yet.
-------------- 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/20180530/e8c657d5/attachment.sig>
More information about the Cygwin
mailing list