Open pparuzel opened 2 years ago
Thanks for reporting this. I've filed a bug on our shared VS parser at https://developercommunity.visualstudio.com/t/C-IntelliSense-gives-incorrect-error-/1637986 .
(Note to team: I didn't file an internal bug, because this issue seems more widely applicable to many VS users).
Bug type: Language Service
Describe the bug
Even though the program compiles fine on Apple Clang, Clang13, and GCC11 - IntelliSense reports an error in Problems Tab. or if you change
values[j]
tovalues[i]
:Minimal example
Here's the most minimal example I could create to reproduce:
Expected behavior
There should be no errors in Problems Tab as this C++20 code is perfectly valid.