Web lists-archives.com

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




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.


Attachment: signature.asc
Description: OpenPGP digital signature