IntelliSense does not recognize the __typeof__ operator · Issue #13556 · microsoft/vscode-cpptools · GitHub
More Web Proxy on the site http://driver.im/
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
The C/C++ extension's IntelliSense does not recognize the __typeof__ operator when using MSVC. According to Microsoft's documentation, it should be valid even when not using /std:clatest.
The following C code triggers the error:
intmain(void) {
inta=0;
__typeof__(a) b=0; // This line triggers `expected a ';' - C/C++(65)`.returnb; // This line triggers `identifier "b" is undefined - C/C++(20)`.
}
The code compiles and runs without any errors or warnings when compiling with /Wall /std:c17.
Expected behavior:
IntelliSense should be able to recognize the __typeof__ and __typeof_unqual__ operators, since they are supported by MSVC, clang and gcc.
@oncipriani thank you for reporting this. Interestingly enough, this was also j
8F8C
ust reported in Visual Studio. When it is fixed there, we will also get the fix in the C/C++ extension.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
The C/C++ extension's IntelliSense does not recognize the
__typeof__
operator when using MSVC. According to Microsoft's documentation, it should be valid even when not using/std:clatest
.The following C code triggers the error:
The code compiles and runs without any errors or warnings when compiling with
/Wall /std:c17
.Expected behavior:
IntelliSense should be able to recognize the
__typeof__
and__typeof_unqual__
operators, since they are supported by MSVC, clang and gcc.Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: