this kind of code worked fine in Qt 5.4 but doesn't compile in 5.5. Is that a bug or is there a reason that this isn't supposed to work?
I get an error: qt_getEnumMetaObject: none of the 5 overloads could convert all the argument types

Qt Code:
  1. #include <QCoreApplication>
  2. #include <QDebug>
  3.  
  4. enum {
  5. test1 = 0
  6. };
  7.  
  8. enum {
  9. sun = (1 << test1)
  10. };
  11.  
  12. enum {
  13. bla = (1 << sun)
  14. };
  15. int main(int argc, char *argv[])
  16. {
  17. QCoreApplication a(argc, argv);
  18. qDebug() << "test";
  19. return a.exec();
  20. }
To copy to clipboard, switch view to plain text mode