You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code Version: 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447)
C/C++ Extension Version: 1.23.6
Bug Summary and Steps to Reproduce
Bug Summary: Intellisense gives an error on structured binding declaration on legal code, specifically the error is std::tuple_size<"const Typename">::value is not a valid integral constant-expression, there is an existing issue already #2597 for this same error and it is reported as completed, however this still persists, with a slight difference. The original bug report's code works fine, however including any header will cause the error to reapper.
Thanks for reporting this. It appears to be an issue with our compiler's clang mode (MSVC mode is not affected). What's more, the error only appears when including certain std headers. I have forwarded this report this to the team that works on the IntelliSense compiler. (issue: 2396533)
Environment
Bug Summary and Steps to Reproduce
Bug Summary: Intellisense gives an error on structured binding declaration on legal code, specifically the error is
std::tuple_size<"const Typename">::value is not a valid integral constant-expression
, there is an existing issue already #2597 for this same error and it is reported as completed, however this still persists, with a slight difference. The original bug report's code works fine, however including any header will cause the error to reapper.Steps to reproduce:
std::tuple_size<"const Point">::value is not a valid integral constant-expression
Expected behavior:
No error should appear, code is perfectly legal as per the C++17 and newer standards
Configuration and Logs
Other Extensions
Even leaving only CMake Tools and C/C++ enabled, the issue persists.
Additional context
No response
The text was updated successfully, but these errors were encountered: