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 - IDE can't recognize overloaded operator&&
Summary: IDE can't recognize overloaded operator&&
Status: RESOLVED DUPLICATE of bug 150835
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 13:59 UTC by soldatov
Modified: 2009-02-27 10:31 UTC (History)
0 users

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 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&&