Hide Forgot
Description of problem: When compiling a program using C++, std::string, openmp and a parallel (not parallel for) directive, I get an internal compiler error. Version-Release number of selected component (if applicable): g++ (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3) Steps to Reproduce: 1. Save the following code in a file test.C: #include <string> int main() { std::string s = ""; #pragma omp parallel { while (true) { printf("."); } } } 2. Compile with the following command: g++ -fopenmp -O2 -Wall -o test test.C Actual results: test.C: In function ‘int main()’: test.C:10:1: internal compiler error: Segmentation fault } ^ Expected results: A valid executable file. Additional info: I can reproduce this error also with g++ 6.2.0 from gcc.gnu.org.
I accidentally removed the following information: How reproducible: always
I've fixed this upstream almost 2 months ago. So, it should be fixed already in the current erratas (gcc-6.2.1-2.fc24 or gcc-6.2.1-2.fc25).