-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.4.0
-
Fix Version/s: 5.4.0
-
Component/s: Core: QString and Unicode
-
Labels:None
-
Environment:MSVC 2013 32 bit
The internal use of 's' in the lambda definition of QStringLiteral can conflict with external variables:
if (char *s = 0) return QStringLiteral("Error");
main.cpp(7) : error C2373: 's' : redefinition; different type modifiers main.cpp(6) : see declaration of 's' main.cpp(7) : error C3493: 's' cannot be implicitly captured because no default capture mode has been specified