-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
4.7.4
configuring with -no-rtti on Windows will cause a build failure with the following error:
qmlshadersplugin_plugin.cpp shadereffect.cpp c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : error C2825: 'T': must be a class or namespace when followed by '::' .\shadereffect.cpp(47) : see reference to function template instantiation 'T qt_dynamic_cast_check<ShaderEffectBuffer*,QPaintDe vice*>(X,T *)' being compiled with [ T=ShaderEffectBuffer *, X=QPaintDevice * ] c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : error C2039: 'dynamic_cast_will_always_fail_because_rtti_is_dis abled' : is not a member of '`global namespace'' c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : error C2146: syntax error : missing ';' before identifier 'dynamic_cast_will_always_fail_because_rtti_is_dis abled' c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : error C2275: 'T' : illegal use of this type as an expression .\shadereffect.cpp(47) : see declaration of 'T' c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : error C2065: 'dynamic_cast_will_always_fail_because_rtti_is_dis abled' : undeclared identifier