Hi
I'm hitting the following error (and other similar ones) with this qt-creator build [1] on armv7hl and armv7hl only:
/usr/include/clang/AST/Type.h: In member function 'clang::QualType clang::TypeSourceInfo::getType() const': /usr/include/clang/AST/Type.h:6238:37: error: invalid use of non-static data member 'clang::TypeSourceInfo::Ty' 6238 | QualType getType() const { return Ty; }
where /usr/include/clang/AST/Type.h contains:
6227: class alignas(8) TypeSourceInfo { 6228: // Contains a memory block after the class, used for type source information, 6229: // allocated by ASTContext. 6230: friend class ASTContext; 6231: 6232: QualType Ty; 6233: 6234: TypeSourceInfo(QualType ty) : Ty(ty) {} 6235: 6236: public: 6237: /// Return the type wrapped by this type source info. 6238: QualType getType() const { return Ty; } 6239: 6240: /// Return the TypeLoc wrapper for the type source info. 6241: TypeLoc getTypeLoc() const; // implemented in TypeLoc.h 6242: 6243: /// Override the type stored in this TypeSourceInfo. Use with caution! 6244: void overrideType(QualType T) { Ty = T; } 6245: };
I read this error as if gcc thinks that clang::TypeSourceInfo::getType() const is static?
Thanks Sandro
[1] https://koji.fedoraproject.org/koji/taskinfo?taskID=44206617