This program generates a type error, a mismatch between long and long *, with the long coming from the implicit end - begin calculation and the long * being in the code as written.
long cilk_for_type_error(const long *begin, const long *end)
{
_Cilk_for (const long *p = begin; p != end; ++p)
(void)p;
return 0;
}
Without pull request 155 the compiler crashes after reporting the error.
This program generates a type error, a mismatch between
long
andlong *
, with thelong
coming from the implicitend - begin
calculation and thelong *
being in the code as written.Without pull request 155 the compiler crashes after reporting the error.