g++ std::map initializing raises segmentation fault.

Marco Atzeri marco.atzeri@gmail.com
Fri Jul 7 14:28:00 GMT 2017


On 07/07/2017 16:21, Ivan Gagis wrote:
> I installed g++ 6.3.0-2 and still can reproduce the segfault :(.
>
> Br,
> Ivan
>

It seems due to the -std=c++11 restriction

$ g++ foo.cc

$ ./a.exe
Hello World!

$ g++ -std=c++11 foo.cc

$ ./a.exe
Segmentation fault (core dumped)


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list