| Summary: | [c++] The name of the class can be reused for a class member | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Markus Schorn <mschorn.eclipse> |
| Component: | cdt-parser | Assignee: | Nathan Ridge <zeratul976> |
| Status: | RESOLVED FIXED | QA Contact: | Mike Kucera <mikekucera> |
| Severity: | normal | ||
| Priority: | P3 | CC: | malaperle, yevshif, zeratul976 |
| Version: | 8.0 | ||
| Target Milestone: | 8.3.0 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
*** Bug 412168 has been marked as a duplicate of this bug. *** The problem was that CPPClassScope.getBindings() was exiting early and just returning the class name if the name being looked up was equal to the class name, rather than going on to look for members with that name. Patch: https://git.eclipse.org/r/20147 This was fixed in http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=628e0329b259dfd307cd87dd0cf807b06dd04288. Fixed in 8.3. |
Example: struct S { int S; }; void tint(int); void test() { S s; tint(s.S); // Problem binidng here. }