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 148223

Summary: IDE can't recognize overloaded operator&&
Product: cnd Reporter: soldatov <soldatov>
Component: EditorAssignee: issues@cnd <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2008-09-24 13:59:30 UTC
IDE highlights identifier 'c' as wrong
class C {
public:
    int c() {
        return 0;
    }
};

class A {
public:
    C c1;
    int a() {
        return 0;
    }
};

class B {
public:
    int b() {
        return 0;
    }
};

C operator&& (A a1, B b1) {
    return a1.c1;
}

int main() {
    A a1;
    B b1;
    (a1 && b1).c(); // Unable to resolve identifier c

    return (0);
}
Comment 1 Alexey Vladykin 2008-10-21 10:55:47 UTC

*** This issue has been marked as a duplicate of 150835 ***
Comment 2 Quality Engineering 2009-02-27 10:31:04 UTC
Integrated into 'main-golden', will be available in build *200902270313* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e20fa50ef21d
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: test for IZ#148223: IDE can't recognize overloaded operator&&