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.

Bug 235447 - regression in inaccuracy tests ("variadic template" suite)
Summary: regression in inaccuracy tests ("variadic template" suite)
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.4
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-09-03 09:41 UTC by soldatov
Modified: 2013-11-13 08:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2013-09-03 09:41:59 UTC
in latest build IDE highlights bar2 as a unresolved identifier. Original code has variadic template.

#include <iostream>
//template<typename T1>
class foo {
public:
    template<typename T2> foo(const T2& f) {
        std::cout << f << std::endl;
    }

    void bar1(const foo& v) {
        foo(v).bar2();
    }

    void bar2() {
    }
};

int main() {
//    foo<int> f1(1);
//    foo<float> f2(1.1f);
    foo(1);
    foo(1.2);
    foo('c');
    return 0;
}
Comment 1 petrk 2013-09-03 14:46:16 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/4aa3fff482b6
Comment 2 soldatov 2013-11-11 14:36:56 UTC
verified in latest OSS build