Skip to content

Incorrect IntelliSense squiggle "no instance of constructor" with class template argument deduction #2912

Closed

Description

Regression starting with 0.21.0-insiders.

Repro is a modification to the bug #2907 . I believe it should start reproing in VS 2019 Preview 2, so I'll file a bug with that after it ships unless they fix it beforehand.

template<typename T>
struct B {
    B(T p2) {  }
};

int main()
{
    B<int>* test1 = new B{ 5 }; // < Error
}

Gives error: "no instance of constructor “B” matches the argument list – argument types are: ({â€Ķ})”.

Activity

  1. changed the title [-]0.21.0-insiders regression: Incorrect IntelliSense squiggle "no instance of constructor" with class template argument deduction[/-] [+]Incorrect IntelliSense squiggle "no instance of constructor" with class template argument deduction[/+] on Dec 11, 2018
  2. added
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Dec 27, 2018
  3. sean-mcmanus commented on Jan 4, 2019

    @sean-mcmanus
    ContributorAuthor

    Fixed with our latest 0.21.0-insiders3. Setting C_Cpp.updateChannel to "Insiders" is another way to get the update.

  4. locked and limited conversation to collaborators on Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.parserregressionA 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