msvc mode C++23 deduced type construction with auto(x) and auto{x} gives an IntelliSense error
I can't seem to find a GitHub issue on this: https://developercommunity.visualstudio.com/t/C23-deduced-type-construction-with-aut/10947734
Use a c++23 with msvc mode with test.cpp
void func()
{
auto v1 = auto(42); // cl.exe compilers, but IntelliSense gives "expected an expression"
auto v2 = auto{ 42 }; // cl.exe compilers, but IntelliSense gives "expected an expression"
}
Bug: IntelliSense reports the error “expected an expression” but it compiles.
