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

2017-12-05 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80038 --- Comment #35 from Florent Hivert --- I can't help knowing nothing about the internal of GCC, but I'm strongly in favor having a release with this fix, in particular since it's there and since there is no good replacement for Cilk. OpenMP task

[Bug c++/82781] New: Vector extension operators return wrong result in constexpr

2017-10-31 Thread florent.hivert at lri dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: florent.hivert at lri dot fr Target Milestone: --- The following code shows the expected behavior of the == operator on vector: #include using foo = int __attribute__ ((vector_size

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

2017-03-16 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80038 --- Comment #13 from Florent Hivert --- I've not yet been able to find a small example that shows the regression due to GCC5 ICE. In particular, I'm not sure the problem mentioned by Fournival is not due to a bug in my code (See my question of ht

[Bug c++/80045] [cilkplus] The destruction of the temporary variable is not in the child

2017-03-15 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80045 --- Comment #4 from Florent Hivert --- I should have said first : thanks for analizing the problem !!! I wasn't sure about the proper way to do thing and I was afraid that no one Cilk aware was following gcc-help. Anyway I should have mentioned

[Bug c++/80045] [cilkplus] The destruction of the temporary variable is not in the child

2017-03-15 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80045 --- Comment #1 from Florent Hivert --- I'm not sure why you created a new report. I already created 80038. Should'nt one be closed as a duplicate ?

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

2017-03-14 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80038 --- Comment #7 from Florent Hivert --- (In reply to Jeffrey A. Law from comment #6) > Also note it is likely Cilk+ will be deprecated in gcc-7 That's a huge pity from my point of view. For recursive exploration like the code I put here, I don't

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

2017-03-14 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80038 --- Comment #5 from Florent Hivert --- (In reply to Richard Biener from comment #3) > Don't know Cilk+ but yes, try > >for (int i=0; i<8; i++) { > std::vector vnew(v); > vnew.push_back(i); > cilk_spawn walk(vnew, size); >

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

2017-03-14 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80038 --- Comment #2 from Florent Hivert --- Thanks for your quick answer ! I'm not sure to understand what you mean by "Thus insert a blocking primitive?" Do you suggest to add a cilk_sync somewhere ?

[Bug other/69582] [meta-bug] Cilk+

2017-03-14 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69582 Florent Hivert changed: What|Removed |Added CC||florent.hivert at lri dot fr

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

2017-03-14 Thread florent.hivert at lri dot fr
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: florent.hivert at lri dot fr Target Milestone: --- The following (reduced) code works if using only one core but segfault randomly when using more core. The more core your have, the more chance you have to get a

[Bug c++/60967] ICE with range for in template function with C++11 and cilkplus

2014-05-28 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60967 --- Comment #1 from Florent Hivert --- The problem doesn't occur anymore with the released version (I was using the cilkplus branch development version). Should this be closed as invalid or should someone find if there is a duplicate ?

[Bug c++/60430] static_assert and reference to const/constexpr

2014-05-28 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60430 Florent Hivert changed: What|Removed |Added Version|4.8.1 |4.9.0 --- Comment #1 from Florent Hiver

[Bug c++/60245] function with using defined parameter not accepted as constexpr parameter

2014-05-28 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60245 Florent Hivert changed: What|Removed |Added Version|4.8.1 |4.9.0 --- Comment #3 from Florent Hiver

[Bug c++/60210] segfault when trying to use a const template using

2014-05-13 Thread florent.hivert at lri dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60210 --- Comment #1 from Florent Hivert --- The bug has vanished in the recent 4.9.0 release. Should I mark the ticket as RESOLVED and close it ?

[Bug c++/60967] New: ICE with range for in template function with C++11 and cilkplus

2014-04-25 Thread florent.hivert at lri dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: florent.hivert at lri dot fr It is not possible to use a range for in a template function (or member function by the way) when compiling with C++11 and Cilkplus. The following code int

[Bug c++/60430] New: static_assert and reference to const/constexpr

2014-03-05 Thread florent.hivert at lri dot fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: florent.hivert at lri dot fr I think the following should be accepted: constexpr const int A = 42; const int &B = A; static_assert(&A == &B, "Bug"); int main() {return 0;} Indeed, even if B is not co

[Bug c++/60245] Template static function not accepted as constexpr parameter

2014-02-17 Thread florent.hivert at lri dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60245 --- Comment #2 from Florent Hivert --- Sorry ! The version I submitted is not the most reduced. Here is a version not using vectors: constexpr int Apply(const int in, int (*f)(const int&)) { return f(in); } using Foo = int; static constexpr int

[Bug c++/60245] Template static function not accepted as constexpr parameter

2014-02-17 Thread florent.hivert at lri dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60245 --- Comment #1 from Florent Hivert --- Created attachment 32155 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32155&action=edit preprocessed code

[Bug c++/60245] New: Template static function not accepted as constexpr parameter

2014-02-17 Thread florent.hivert at lri dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: florent.hivert at lri dot fr GCC is not able to compile the following code #include using Ar = std::array; template constexpr T Apply(const T& in, T (*f)(const T&)) { ret

[Bug c++/60210] New: segfault when trying to use a const template using

2014-02-15 Thread florent.hivert at lri dot fr
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: florent.hivert at lri dot fr Created attachment 32143 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32143&action=edit preprocessed code The following code triggers a segfault: template struct S {}; t