Skip to content

Tuple Covariance Crashes Intellisense Process #2505

@rbit

Description

@rbit

Describe the bug

  • OS and Version: macOS 10.13.6
  • VS Code Version: 1.27.1
  • C/C++ Extension Version: 0.18.1

Exercising tuple covariance will crash the intellisense process. This snippet will cause a crash:

#include <tuple>

void Foo(std::tuple<int>)
{}

int main(int argc, char* argv[])
{
    short val = 0;
    Foo(std::make_tuple(val));
}

The snippet compiles and runs without warnings:

clang -std=c++11 tst.cpp

The C/C++ output will show entries like this:

Checking for syntax errors: file:///Users/ray/src/gm/vscpp/tst.cpp
Failed to read response from server: 18
Checking for syntax errors: file:///Users/ray/src/gm/vscpp/tst.cpp
IntelliSense engine is not responding. Using the Tag Parser instead.
IntelliSense engine is not responding. Using the Tag Parser instead.
IntelliSense engine is not responding. Using the Tag Parser instead.
Resetting IntelliSense server: /Users/ray/src/gm/vscpp/tst.cpp
Failed to read response from server: 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.parser

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions