I tried to compile following program
#include <iostream> int main () { for (int idx = 0; idx < 5; idx++) { std::cout << "Hello World" << std::endl; } return 0; }
using the following commands
g++ example.cpp -o example.exe example.exe
The program crashes with a meaningful report from Windows that the program just stopped to work. If I remove std::endl the program does not crash though.
Could be related to #1678 - however there is no solution in the given ticket that would solve my problem.