Skip to content

1.13.3 IntelliSense regression: "expression must have a constant value" #10075

@sean-mcmanus

Description

@sean-mcmanus

Use code

#include <vector>
#include <string>

void func(std::vector<std::string>&& v) {}

int main()
{
    std::string dd;
    std::vector<std::string> vv;
    func(std::vector{ dd });
}

with /std:c++17.

Bug: IntelliSense gives “expression must have a constant value”.

Regression compared to 1.13.2.

Filed on VS 17.5 Preview at https://developercommunity.visualstudio.com/t/High-priority-IntelliSense-regression-wi/10184093 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServiceVisual StudioInherited from Visual StudiobugfixedCheck the Milestone for the release in which the fix is or will be available.insidersCurrently only repros with our latest Insiders release.regressionA 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