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 shows up in error message instead of cilk_for #195

Open
wheatman opened this issue Sep 18, 2023 · 0 comments
Open

_Cilk_for shows up in error message instead of cilk_for #195

wheatman opened this issue Sep 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@wheatman
Copy link
Contributor

Describe the bug

When misusing cilk_for the error message uses _Cilk_for instead of cilk_for

The following code

#include <cilk/cilk.h>

int main() {
  cilk_for(int i = 0; i < 10; i++) { return 0; }
}

gives the error of

del.cpp:4:38: error: cannot return from within a '_Cilk_for' loop

I would expect it to give an error of

del.cpp:4:38: error: cannot return from within a 'cilk_for' loop

clang version 16.0.6 (https://github.com/OpenCilk/opencilk-project aa4f4c0)

@wheatman wheatman added the bug Something isn't working label Sep 18, 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

1 participant