Ok, thanks to your hints I have figured it out.
After I have tried any possible advice from above, with still no success, I have excluded any subproject I could think of in my project. Eventually I have found a QML sample .pro which did not have CONFIG += c++11
defined.
That was causing the error. So the root cause was not the project I was working on, but a subproject which however got compiled in the same step.