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
If using SSH remote, specify OS of remote machine: Ubuntu 22.04.4 LTS in WSL2
Bug Summary and Steps to Reproduce
Bug Summary:
The intellisense complains that expression must have a constant value when a constant expression from std::numbers is used in another constant expression.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
The intellisense complains that
expression must have a constant value
when a constant expression fromstd::numbers
is used in another constant expression.Steps to reproduce:
Expected behavior:
No error.
Configuration and Logs
Diagnostics:
Other Extensions
None
Additional context
If the constant is defined without potential narrowing, the intellisense works fine. For example,
Note that the definition in
std::numbers
is something likeThe narrowing conversion for the literal is definitely legal.
The text was updated successfully, but these errors were encountered: