If using SSH remote, specify OS of remote machine: n/a
Bug Summary and Steps to Reproduce
Bug Summary:
Intellisense is displaying errors which do not appear when compiling directly. The errors started appearing only after upgrading the Command Line Tools to version 16.
Steps to reproduce:
Create a .cpp file with the following code:
#include <utility>
int main()
{
std::pair<int, int> pair(1, 2);
auto [one, two] = pair;
}
Ensure cpp standard is set to c++17.
Hover over [ on the 6th line
See error: std::tuple_size<"std::__1::pair<int, int>">::value is not a valid integral constant-expression
Expected behavior:
No error should appear, since this is a valid program when using c++17 or newer.
Environment
Bug Summary and Steps to Reproduce
Bug Summary: Intellisense is displaying errors which do not appear when compiling directly. The errors started appearing only after upgrading the Command Line Tools to version 16.
Steps to reproduce:
.cpp
file with the following code:c++17
.[
on the 6th lineExpected behavior: No error should appear, since this is a valid program when using
c++17
or newer.Configuration and Logs
Other Extensions
clang-format, disabling it makes no difference
Additional context
No response