Skip to content

cppStandard no longer seems to be respected on insiders version #3541

@duncanhorn

Description

@duncanhorn

Type: LanguageService

Describe the bug

  • OS and Version: Windows 1803(?) update
  • VS Code Version: 1.34.0-insiders
  • C/C++ Extension Version: 0.23.0-insiders

To Reproduce

  1. Have the above installed.
  2. Create a blank directory and open it in Code Insiders
  3. Create a new cpp file and write the contents:
#include <string_view>

std::string_view s = "foo";

There will be red squiggles on std::string_view. You can edit the c_cpp_properties.json file to include the line "cppStandard": "c++17", but that doesn't seem to help. No matter what the deduced C++ version is always less than C++17 (C++14?).

Expected behavior
Once adding "cppStandard": "c++17" to the configuration file, C++17 features should not give intellisense errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.insidersCurrently only repros with our latest Insiders release.quick fixregressionA bug that didn't exist in a previous release

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions