Community
cancel
Showing results for 
Search instead for 
Did you mean: 
vzecca
Beginner
193 Views

icpx ICE in llvm::FoldingSetBase::FindNodeOrInsertPos

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);

}

0 Kudos
3 Replies
AbhishekD_Intel
Moderator
174 Views

Hi,

 

 

Thanks for reaching out to us.

We are forwarding this issue to the concerned team.

 

 

Thank you.

 

Viet_H_Intel
Moderator
163 Views

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);


}



Viet_H_Intel
Moderator
157 Views

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,