Unable to compile with c++20/23 with <QtQml> included

REPRODUCIBILITY: 100%
OS VERSION: 5.1.0.11
HARDWARE: SDK
UI LANGUAGE: matters not
REGRESSION: yes

DESCRIPTION:

You cannot compile program with c++20/23 if it includes QtQml. You could in sfos 5.0 so it its very much a regression. Mostlikely caused by jump in GCC version. It fails to compiile qfutureinterface.h. I would even welcome a program-side workaround to make it compile.

PRECONDITIONS:

CONFIG += c++20
QMAKE_CXXFLAGS_RELEASE += -std=c++20
QMAKE_CXXFLAGS_DEBUG += -std=c++20

And in .c file #include <QtQml>

STEPS TO REPRODUCE:

Try to compile app/program

EXPECTED RESULT:

It should compile successfully

ACTUAL RESULT:

It doesn’t.

MODIFICATIONS:

None it’s reproducible on fresh sdk install and freshly created project.

ADDITIONAL INFORMATION:

4 Likes