Open
Description
#include <iostream>
using namespace std;
class Test{
static void printMsg(){
cout << "Hello World!";
}
};
int main(){
Test *t;
t->printMsg();
}
The t->printMsg()
appears to be invalid, but in C++ a static method can be accessed in this manner. Alter the UninitializedLocal.ql query to filter calls to static methods.
Metadata
Metadata
Assignees
Labels
No labels