struct foo { int func() const; }; int main() { foo f; f.func(); // Go to def fails when it's not in the TU, i.e. it goes to the declaration. }