Public bug reported:

Segementation fault in GCC when compiling the attached file.

The following command line triggers the crash:

/usr/bin/g++ -c -O3 -g -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno-exceptions -static-libgcc -Wl,--hash-style=both,--as-
needed -DENABLE_TASK -std=c++0x -DTO_OMP -fopenmp -fexceptions
-DUSE_ALAMERE_TASKQ -w  -DNDEBUG -o
obj/Arrays/ARRAY_PARALLEL_OPERATIONS.o ARRAY_PARALLEL_OPERATIONS.ii

The error message is:
Arrays/ARRAY_PARALLEL_OPERATIONS.cpp: In copy constructor 
‘PhysBAM::ARRAY<T>::ARRAY(const PhysBAM::ARRAY<T>&, bool) [with T = 
PhysBAM::ARRAY_PARALLEL_OPERATIONS_HELPER<PhysBAM::VECTOR_2D<float>, float, 
PhysBAM::VECTOR_2D<float> >]’:
Arrays/ARRAY_PARALLEL_OPERATIONS.cpp:298:1: internal compiler error: 
Segmentation fault
   create_task0(spawn Array_Parallel_Operations_Helper(&helpers(i)));
 ^

This happens with gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~16.04) 
The same error happens with gcc-6.2
Intel ICC can compile the same code without any errors.

** Affects: gcc-5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1683573

Title:
  GCC crashes with segmentation fault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1683573/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to