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
c++20 is incorrectly used as the default cppStandard with g++-10 #5536
Comments
|
There are 2 issues:
The workaround is to set the cppStandard to a version less than c++20. c18 is also used as the default for .c files, which is also incorrect (should be gnu11). |
module for a variable name when C++ Standard has not been selected|
Actually, I believe the usage of c++20 is "by design" because we try to use the highest standard version the compiler supports, but we may want to change that design to either use the actual default or excluding c++20 since the support is not complete yet. Setting C_Cpp.default.cppStandard should be a workaround. |
|
@sean-mcmanus Everyone expects IntelliSense to match compiler behaviour. Using actual default will make more sense. |
|
This seems fixed already in 0.28.3. Let me know if you can still repro it. |
Type: LanguageService
Can't use
modulefor a variable name when C++ Standard has not been selectedSteps to reproduce
module.cpp
c_cpp_properties.json
Expected behavior
Expect to variable names of
moduleto not be identified as errorsLogs
The text was updated successfully, but these errors were encountered: