-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intellisense states: namespace "std" has no member "bit_cast". yet it compiles #8434
Comments
Yeah, I repro the issue, but when I build with the minGW 11.2 g++ I get the same error. |
standard is set to c++20? |
Oops, you're right -- it builds after I add the -std=c++20 is added -- I was thinking #7268 had been implemented. |
It's caused by __has_builtin(__builtin_bit_cast) evaluating to false under IntelliSense. I've filed an internal bug against our parser shared with VS. |
It's still in 1.8.0 |
@eypsume Can you provide more repro details? I'm seeing the bug as fixed. You may be hitting a different scenario. Are you using c++20? When you run C/C++: Log Diagnostics, what do you see for this info:
@Colengms Did you repro the bug with 1.8.0-insiders2? |
@sean-mcmanus With 1.8.0-insiders2, I'm not able to reproduce the issue as described here. @eypsume Can you provide a stand-alone example that repro's with 1.8.0-insiders2, that we could use to investigate further? |
I can repro by switching back to 1.7.1. Since something was definitely fixed related to what is described in this issue, I'm going to re-resolve this as fixed. @eypsume If you are still able to repro an issue, please let us know how to repro. :) |
Bug type: Language Service
Describe the bug
The bug
Intellisense marks
std::bit_cast<>()
as not being defined even though it is, also it doesn't auto complete it.Furthermore the code compiles without errors.
Code sample and logs
Code sample
Configurations in `c_cpp_properties.json`
Logs from running `C/C++: Log Diagnostics`
Logs from the language server logging
The text was updated successfully, but these errors were encountered: