Are you on ubuntu? I am asking because I have the same, but CLANG works. I came to conclusion that this is actually a bug in GCC introduced by some update.
Can you try to e.g. compile hello world without TheIDE?
Mirek
I'm on Mint.
Hello world compiles OK.
The old version of UPP (installed in another folder) works fine.
When I copy the file theide from old UPP into the last one, all works ok.