Weird interaction with C++20's abbreviated function template #7446
Labels
bug
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
Visual Studio
Inherited from Visual Studio
Milestone
Bug type: Language Service
Describe the bug
The language service compiler EDG fails to compile a valid C++20 code when using abbreviated function templates.
There are precisely two problems here: the two occurrences of abbreviated function template parameters
and
They cause problems for EDG, but compiles fine with MSVC with C++20 (I used
cl /c /MD /std:c++latest main.cpp
)EDG successfully compiles when you replace the occurrences with:
and
Sorry if this repro is a little complex, as I couldn't repro the issue any other way.
Steps to reproduce
main.cpp
cl /BE /c /MD /std:c++latest main.cpp
)Expected behavior
Code should compile fine and no errors
Code sample and logs
Code sample
Configurations in
c_cpp_properties.json
C/C++: Log Diagnostics
from the VS Code command paletteScreenshots
Additional context
The text was updated successfully, but these errors were encountered: