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
Note:
To reproduce this, you'll need wait for VS 2022 17.12 Preview or later version to ship which will contain this change.
Recently, we have been building this project using the latest build of MSVC, and we have encountered the following error:
Serious-Engine\Sources\Engine\Base\CTString.cpp(511,35):
error C2488: 'CTString::ScanF': 'naked' can only be applied to non-member function definitions
Serious-Engine\Sources\Engine\Base\CTString.cpp(511,35):
error C2488: 'CTString::ScanF': 'naked' can only be applied to non-member function definitions
structFoo {
__declspec(naked) voidfunc1() {} // gets C2488voidfunc2();
__declspec(naked) staticvoidfunc3() {} // gets C2488
};
__declspec(naked) void Foo::func2() {} // should also get C2488
repro command:
cl /c test.cpp
For current version, you will only ger error C2488 on line 2 and 4. For the upcoming version of VS, the last line will be also getting the error C2488.
The text was updated successfully, but these errors were encountered:
Description:
Note:
To reproduce this, you'll need wait for VS 2022 17.12 Preview or later version to ship which will contain this change.
Recently, we have been building this project using the latest build of MSVC, and we have encountered the following error:
Reproduction Step
Expected Behavior
It compiles.
Actual result
Complete build log:
Build.log
Other information
This is the narrowed down repro, test.cpp:
repro command:
For current version, you will only ger error C2488 on line 2 and 4. For the upcoming version of VS, the last line will be also getting the error C2488.
The text was updated successfully, but these errors were encountered: