This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
#include <iostream> struct AAA {}; struct BBB : AAA {}; template <typename T1, typename T2> void roo(T1 t1, T2 t2) { std::cout << "roo 1" << std::endl; } template <typename T1, typename T2> void roo(T1 *t1, T2 *t2) { std::cout << "roo 2" << std::endl; } template <typename T1, typename T2> void roo(const T1 *t1, const T2 *t2) { std::cout << "roo 3" << std::endl; } template <typename T> void roo(T t1, T t2) { std::cout << "roo 4" << std::endl; } void roo(AAA t1, BBB t2) { std::cout << "roo 5" << std::endl; } int main() { AAA a; AAA *pa; BBB b; BBB *pb; roo(a, pa); roo(pa, pb); roo((const AAA*)pa, (const BBB*)pb); roo(a, a); roo(a, b); return 0; }
Fixed in http://hg.netbeans.org/cnd-main/rev/6171213a4854 and http://hg.netbeans.org/cnd-main/rev/79fe80e1d525
Fix failed for roo((const AAA*)pa, (const BBB*)pb); navigates to function with "row 2" executes function with "row 3"
Additional fix in https://enum.ru.oracle.com/hg/pythia-platform/rev/c9a15185e879
Please note, that the last commit is not in patch1 (third case is not fixed in patch).
Postponed for patch2 because last fix caused little regression.
Integrated into 'main-silver', will be available in build *201311170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5344348a5010 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Additional fix for #235462 - Wrong navigation to overloaded functions (transplanted from c9a15185e8797a16349087deb903080a23d0c57a)
Additional fix integrated to releases: 35085cee4554
Integrated into 'releases/release74', will be available in build *201312042201* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/35085cee4554 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Additional fix for #235462 - Wrong navigation to overloaded functions (transplanted from c9a15185e8797a16349087deb903080a23d0c57a) (transplanted from 5ba63c3683ac12e002c2103e97cfaa18e39b70dd)
verified in OSS IDE built on 7.4 patch2 candidate