I had the following code compiled in g++ and it worked.
bool keyExists(Obj key){
findIn(key,true,false,false,nullptr,nullptr,1,0,0);
}
I compiled it using clang++ and when the program run it froze.
I changed the lines to:
bool keyExists(Obj key){
return findIn(key,true,false,false,nullptr,nullptr,1,0,0);
//findIn(key,true,false,false,nullptr,nullptr,1,0,0);
}
and now it works.
I suppose it shouldn't work like that. Is it is a known bug of Clang or a special case?