| Summary: | Binding resolution behave strange on function argument names | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Lukas Felber <l.felber> | ||||
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Markus Schorn <mschorn.eclipse> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 7.0 | ||||||
| Target Milestone: | 7.0.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Build Identifier: Build id: I20100312-1448 consider the following code: void foo(int i); void foo(int i) { } resolving the IASTName "i" with ast.getDeclarations(binding) in the first and the second case returns two names. But when (following code) the parameter names are different, both of them only resolve to the declaration's name "j". void foo(int i); void foo(int j) { } This is very strange since the name "i" does not even resolves to itself any more. Consequentially, both of the cases should behave in the same way. In my opinion, the names should in both cases only resolve to itself and not to the other one. Reproducible: Always