The following code provokes an ICE in icpx Version 2021.1 NextGen Beta Build 20200304
// icpx ICE in llvm::FoldingSetBase::FindNodeOrInsertPos
int main ()
{
void *co_h;
bool d = __builtin_coro_done (co_h);
}
Link Copied
Hi,
Thanks for reaching out to us.
We are forwarding this issue to the concerned team.
Thank you.
How did you compile the code with icpc/g++? Any #include header files or command line options I need to have?
$ icpc -c 04801613.cpp
04801613.cpp(5): error: identifier "__builtin_coro_done" is undefined
bool d = __builtin_coro_done (co_h);
^
$ cat 04801613.cpp
int main ()
{
void *co_h;
bool d = __builtin_coro_done (co_h);
}
Regardless, the compiler should emit an error and terminates normally instead of given a core dump.
I've reported this problem to our Developer.
Thanks,
For more complete information about compiler optimizations, see our Optimization Notice.