Open wusikijeronii opened 1 year ago
Hi @wusikijeronii . Thanks for reporting this. It appears to be related to a bug in our IntelliSense engine, which is shared with Visual Studio. I've opened an internal bug against VS for this (1879043).
I can confirm this error also occurs on Visual Studio Code for macOS.
The code below compiles without issue, but Intellisense reports an error.
+1 macOS
same here on macOS, it also happen to std::move
templates
Environment
I use Clang 16.0.5 under MSYS2 enviroment (Clang profile (UCRT runtime))
Bug Summary and Steps to Reproduce
Using anonymous std::string initialization using std::filesystem::path, VS Code shows an error; however, I can successfully compile my project without any warnings or errors.
Example:
path1:
path2 works; path3:
path4:
In all cases, if I replace
"mystring"
withstd::string(mystring)
it errors will disappear.Configuration and Logs
In the debug log, I didn't see any details about it. Environment info: