I need some tips with this weird behavior - let's get this code:
int ** p;
Compiles without problems:
p++;
But this:
((int**)p)++;
It gives me this error message: "error: lvalue required as increment operand".
I turn to pthe type that already exists, nothing changes, so what's the problem? This is a simplified version of the problem that I encountered when I tried to compile one old version gdb. So I suppose it worked and something changed. Any idea what is wrong with the second example?
Pavel source
share