I have two tools: gcc5 and gcc8. Following is the snippet code
bool foo() {
int var;
var = 1;
printf("var=%d\n", var);
}
int calling_foo() {
foo();
}
If I compile and run w/ gcc5, foo() call returns. But, if I compile and run w/ gcc8, foo() call doesn't return.
I understand, there is no return value in foo(), but at least the function should return. I assume that gcc8 is far more stricter. But why the call is not returning.