https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98533
--- Comment #2 from Jakub Jelinek ---
Before that revision the error has been:
pr98533.C: In instantiation of ‘struct QMetaTypeId2’:
pr98533.C:9:6: required by substitution of ‘template void
qRegisterMetaType(char*, T*, typename
MetaTypeDefinedHelper::IsBuiltIn>::defined) [with T =
ActionInstance]’
pr98533.C:16:79: required from here
pr98533.C:5:8: error: ‘Value’ is not a member of
‘IsQEnumHelper’
enum { Defined = QMetaTypeIdQObject::Defined };
^
pr98533.C:16:79: error: no matching function for call to
‘qRegisterMetaType(const char [1], ActionInstance*)’
} newId = qRegisterMetaType("", reinterpret_cast(quintptr()))
^
pr98533.C:9:6: note: candidate: template void qRegisterMetaType(char*,
T*, typename MetaTypeDefinedHelper::IsBuiltIn>::defined)
void qRegisterMetaType(
^
pr98533.C:9:6: note: substitution of deduced template arguments resulted in
errors seen above
pr98533.C:16:79: error: expected ‘,’ or ‘;’ at end of input
} newId = qRegisterMetaType("", reinterpret_cast(quintptr()))