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
C/C++ Extension Version: 1.22.11, updated at 2024-11-06, 19:45:17
If using SSH remote, specify OS of remote machine: none
Bug Summary and Steps to Reproduce
Bug Summary:
IntelliSense error if Explicit Object Parameter, Type Conversion Operator, and Template are used together.
Steps to reproduce:
create a new file named 'bug.cpp' (use cppStandard c++23).
copy the code below into it:
struct A
{
template <typename T>
operator int(this T & self) { return 1; }
operator char(this auto &self) { return 2; }
};
int main()
{
A a;
int i = a;
int j = int(a);
char k = char(a);
return i;
}
some codes are red underlined.
Expected behavior:
there should be no red underlined code.
i am aslo facing the same isssue after installing c/c++ intellisense extention showing red error line under the # of include file
#include
using namespace std;
int main()
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
IntelliSense error if Explicit Object Parameter, Type Conversion Operator, and Template are used together.
Steps to reproduce:
Expected behavior:
there should be no red underlined code.
Configuration and Logs
Other Extensions
No response
Additional context
The text was updated successfully, but these errors were encountered: