Community
Participate
Working Groups
Build Identifier: I20110613-1736 Given the following code, resolution of "f" (in file a.c) yields a ProblemBinding instead of returning the IField of the struct B (in b.h). When ctrl+clicking on "f" CDT offers to go to either b.h or c.h instead of only b.h. Note that the problem arises only if the the code is split up into header- and source files as indicated in the comment bellow. Reproducible: Always Steps to Reproduce: //a.c #include "b.h" #include "c.h" struct B b = { .f = 3.1 }; //b.h struct B { float f; }; //c.h struct C { float f; };
It seams that name "f" returns "null" instead of a ProblemBinding (as I assumed).
Added testcase and fix.
*** cdt git genie on behalf of Markus Schorn *** Bug 356730: Resolution of designated initializers [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c4e19ace4c37879a7ef9e719b46d7defe7eb72b1
*** cdt git genie on behalf of Markus Schorn *** Bug 356730: Resolution of designated initializers [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=e75a7388a05bab1a1a287cd6ae36175c26a46851