Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cilk_for type error with pointer loop variable #156

Closed
VoxSciurorum opened this issue Dec 28, 2022 · 0 comments
Closed

cilk_for type error with pointer loop variable #156

VoxSciurorum opened this issue Dec 28, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@VoxSciurorum
Copy link
Contributor

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.

@VoxSciurorum VoxSciurorum added the bug Something isn't working label Dec 28, 2022
@VoxSciurorum VoxSciurorum self-assigned this Dec 28, 2022
@neboat neboat closed this as completed Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants