Skip to content

0.17.7 regression: IntelliSense reports incorrect "no suitable constructor" error #2422

@sean-mcmanus

Description

@sean-mcmanus

See https://developercommunity.visualstudio.com/content/problem/314489/158-regression-c-intellisense-reports-incorrect-no.html .

template <typename TT>
class Base
{
public:
	Base(const int &rhs) : ss(rhs) { }
	Base(const TT &rhs) : ss(rhs.ss) { }
protected:
	int ss;
};


class cc : public Base<cc>
{
public:
	using Base<cc>::Base;
};
 

int main()
{
	int f;
	cc c = f; // no suitable constructor exists to convert from "int" to "cc"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.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