Skip to content

Incorrect C++ IntelliSense error: '= delete' can only appear on the first declaration of a function #2352

@sean-mcmanus

Description

@sean-mcmanus

Use this code

namespace ns
{
	template<typename T> T func(T) {}
	template<typename T> T func() = delete;
}

It's a regression starting with 0.17.7, due to code pulled in from VS 15.8: https://developercommunity.visualstudio.com/content/problem/305335/incorrect-c-intellisense-error-delete-can-only-app.html .

For now, we'll just suppress the error completely, until we can get a fix for the bogus cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.parserquick fixregressionA bug that didn't exist in a previous release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions