microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

IntelliSense not handling constexpr float types properly (starting from extension 1.17.2) #11386

Open rsarrazin2 opened 1 year ago

rsarrazin2 commented 1 year ago

Environment

Bug Summary and Steps to Reproduce

Bug Summary: IntelliSense reports errors (at least on constexpr literals) that the compiler doesn't.

Steps to reproduce:

  1. Clone the minimum viable example.
  2. Build it using the CMake extension (works probably as well when manually running CMake).
  3. Open example.cpp.
  4. If not happened automatically, run the "C/C++: Run Code Analysis on Active File" command.
  5. You'll see the 4 IntelliSense errors that aren't reported by the compiler:

image

Expected behavior:

Notes:

Configuration and Logs

* No `c_cpp_properties.json` used
* No `C/C++: Log Diagnostics` command found
* Output from debug info with Debug log level: see file pasted in "Additional context"

Other Extensions

No response

Additional context

debug_output.log

Colengms commented 1 year ago

Note: This was moved from https://github.com/microsoft/vscode-cpptools/issues/11351#issuecomment-1697499243 , and the internal bug number is 1839628 (EDG).

rsarrazin2 commented 9 months ago

Note that v1.18.5 still presents the issue.

rsarrazin2 commented 2 months ago

This issue is about to celebrate its first birthday but is unfortunately still present in v1.21.6. Kindly requesting to reconsider for prioritization.

sean-mcmanus commented 2 months ago

@rsarrazin2 I've pinged the team.