-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<typeinfo> must be included before typeid is used #1067
Comments
Thanks for reporting it. It repros on Linux, but not Windows. |
This is also broken on macOS Sierra |
@EECSGEEK The error shouldn't occur on Windows unless the typeinfo header (or a header it includes) fails to be located (or fails to get parsed). Are there other errors in your problems window? |
Program one(g++include cunistd.h)
|
@EECSGEEK Oh, yeah, you're using mingw with clang-x64 mode -- that makes sense why it would behave like on Linux. The issue doesn't repro with the typeinfo header defined in the Windows SDK. |
I've verified the fix is in our pending update branch for February. |
Fixed with the preview .vsix at https://github.com/Microsoft/vscode-cpptools/releases/tag/v0.15.0-insiders (our final release is planned for next week). |
@hypermagik @Ortix92 @EECSGEEK The bogus |
The following piece of code shows this error, even though typeinfo is included:
Operating System and version: Ubuntu 16.04.3 LTS.
VS Code version and if you are using the Insiders build: 1.16.1 (not Insiders build).
C/C++ extension version: 0.13.0.
Other extensions you installed and if the issue persists after disabling them: issue persists after disabling all other extensions.
Relevant settings from your settings.json, c_cpp_properties.json, and/or launch.json files:
"C_Cpp.intelliSenseEngine": "Default".
The text was updated successfully, but these errors were encountered: