Community
Participate
Working Groups
Build Identifier: 20110916-0149 In the following code: MyFunction(MyClass(constrArg).MyMethod()); method MyMethod() of the temporary object of class MyClass is not recognized (error "Method 'MyMethod' could not be resolved") as well as the result of the expression "MyClass(constrArg).MyMethod()" is not correctly recognized. Reproducible: Always Steps to Reproduce: 1. Create code "MyFunction(MyClass(constrArg).MyMethod());" in C++ CDT project. C++ code analysis error will appear as well as MyMethod declaration will not be found by IDE (if you point on it and press F3).
CDT version 8.0.0.201109151620.
I have tested with: struct A { A(int); int m(); }; void f(int); void test() { f(A(1).m()); }