Skip to content

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

@sean-mcmanus

Description

@sean-mcmanus

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: ({…})”.

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