You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D:\GitHub\STL\out\build\x64>cl /EHsc /nologo /W4 /std:c++20 meow.cpp && meow
meow.cpp
I have 1729 cute fluffy kittens.
D:\GitHub\STL\out\build\x64>cl /nologo /? | findstr presetPadding
/presetPadding[-] zero initialize padding for stack based class types
D:\GitHub\STL\out\build\x64>cl /EHsc /nologo /W4 /std:c++20 /presetPadding meow.cpp && meow
meow.cpp
meow.cpp(6): error C7595: 'std::_Basic_format_string<char,int,const char (&)[7]>::_Basic_format_string': call to immediate function is not a constant expression
The root cause is a compiler bug, VSO-1444086 "consteval + /presetPadding error". Reported by @cdacamar, who has asked us to look into a workaround, and provided:
Note: the workaround is to decorate _Basic_format_string with __declspec(no_init_all) like we do for our validator:
The root cause is a compiler bug, VSO-1444086 "
consteval
+/presetPadding
error". Reported by @cdacamar, who has asked us to look into a workaround, and provided:The text was updated successfully, but these errors were encountered: