[Bug c++/80038] Random segfault using local vectors in Cilk function

contact@edgar-fournival.fr gcc-bugzilla@gcc.gnu.org
Thu Mar 16 08:32:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80038

--- Comment #11 from Edgar Fournival <contact@edgar-fournival.fr> ---
It is also interesting to note that GCC 5.x is not impacted.

Even if the given example code will not compile on GCC 5 (ICE in lower_stmt, at
gimple-low.c:397 for the line "cilk_spawn walk(vnew, size);"), we discovered
the bug in this project:
https://github.com/hivert/NumericMonoid/tree/master/src/Cilk%2B%2B (source)
https://github.com/hivert/NumericMonoid/issues/2 (results, unfortunately in
French)
Which does compile under GCC 5.

The quick tests done on my machine show that something between GCC 5.4.0 and
GCC 6.3.1 introduced the destructor bug.


More information about the Gcc-bugs mailing list