This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]