callgraph: same-file C++ free-function overloads stop as ambiguous regardless of arguments
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 67/100
Research direction
Start by tracing how callchain resolves C++ free-function calls and compare that path with the member-call overload disambiguation mentioned in the issue. Use the reproducer and run callchain call_over --up 0 --down 3; done means it follows over(int) to over1_leaf and never follows over0_leaf.
Written by the indexing model from the issue text.
Description
Direct callgraph resolution for C++ free functions ignores call arity and argument types, so an unambiguous call to an overloaded free function stops at [ambiguous:] instead of following the matching overload.
Reproducer
void over0_leaf() {}
void over1_leaf() {}
void over() { over0_leaf(); }
void over(int x) { (void)x; over1_leaf(); }
void call_over() { over(1); }
Running callchain call_over --up 0 --down 3 stops at over as [ambiguous:] rather than resolving over(1) to over(int) (over1_leaf).
Expected behavior
call_over should resolve over(1) to over(int) and follow over1_leaf (while still never following over0_leaf), matching the arity/type overload disambiguation already done for member calls.
- Dominant language
- Rust
- Stars
- 187
- Forks
- 53
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 79
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebookexperimental/semcode
-
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
facebookexperimental/semcode#195 ·
Maintainers usually reply within 2 days
-
extract: namespaced C++ this->m and parameter p->m accesses file under different container typesOpen
Difficulty 4/5 3-5 days Newbie friendliness 55/100
facebookexperimental/semcode#198 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
facebookexperimental/semcode#196 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
facebookexperimental/semcode#194 ·
Maintainers usually reply within 2 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
facebookexperimental/semcode#193 ·
Maintainers usually reply within 2 days
All issues in facebookexperimental/semcode
Similar issues
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day