Community
Participate
Working Groups
In the following code: template<typename _Tp> class vector { }; template<typename T> struct bar { void foo() { vector<T> index; for (const auto& entry : index) { } } }; when I right click on 'entry' and click 'Open Declaration', I get a popup with the following error: An internal error occurred during: "Open Declaration". java.lang.NullPointerException Moreover, syntax coloring for the whole file is disabled. If I comment out the line containing the for loop, the syntax coloring kicks back in. This was tested with Eclipse Juno M4. The problem does not occur with Indigo.
More precisely, *semantic* coloring is disabled in the whole file unless I comment out the for loop.
Problem has gone away with the latest fix for bug 332883. Added testcase and fixed CPPUnknownScope to return an empty array rather than null.