You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from test_reducer.cpp:7:
In file included from /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstdlib:75:
In file included from /usr/include/stdlib.h:394:
/usr/include/x86_64-linux-gnu/sys/types.h:103:9: error: unknown type name '__id_t'; did you mean 'ns::__id_t'?
typedef __id_t id_t;
^
/usr/include/x86_64-linux-gnu/bits/types.h:159:24: note: 'ns::__id_t' declared here
__STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */
compiled with ./opencilkv20/build/bin/clang++ -fopencilk basic.cpp
for reference
Is there a particular reason you want to include cilk/cilk_api.h in its own namespace? Including headers within namespaces is generally considered a Bad Idea, so I'm curious why you would want to do this.
This is a minimal example
The reason why I did this originally was because I had some code that could be compiled with or without cilk, and when compiling without cilk didn't include the header since other compilers couldn't find it. I could just move this out of the namespace to fix this issue and use a separate ifdef, but wanted to report the bug in case it was something other people ran into, or something important
The following code crashes with a lot of errors with unknown type names
error sample
compiled with
./opencilkv20/build/bin/clang++ -fopencilk basic.cpp
for reference
It does not crash on the V1.1
The text was updated successfully, but these errors were encountered: