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 216084 - Wrong editor underline of pure virtual class member - type conversion operator
Summary: Wrong editor underline of pure virtual class member - type conversion operator
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 19:21 UTC by crimcat
Modified: 2013-05-26 02:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (32.69 KB, text/plain)
2012-07-27 19:21 UTC, crimcat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crimcat 2012-07-27 19:21:43 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Linux version 3.1.0-1-amd64 running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = OpenJDK 64-Bit Server VM 20.0-b12
---------------
Let's have the following code:
class base {
public:
    virtual ~base() { }
    virtual operator int() const = 0;
    virtual operator char() const = 0;
};
Both virtual methods are underlined with red, Hints saying about lots of unexpected tokens. If I remove '= 0', parser works fine, no red underlining. Code is compilable, and moreover used.
Comment 1 crimcat 2012-07-27 19:21:49 UTC
Created attachment 122475 [details]
IDE log
Comment 2 Alexander Pepin 2012-09-24 15:23:16 UTC
confirmed
The testcase should be covered now by C++/C++11 accuracy tests
Comment 3 soldatov 2013-05-24 14:17:37 UTC
same problem in boost_1_53_0/boost/exception/exception.hpp


class AA {
public:
    AA() {
        ;
    }
    virtual ~AA() throw() = 0;
};

int main(int argc, char** argv) {

    return 0;
}
Comment 4 Vladimir Voskresensky 2013-05-24 16:20:51 UTC
http://hg.netbeans.org/cnd-main/rev/85f313954030
Comment 5 Quality Engineering 2013-05-26 02:23:29 UTC
Integrated into 'main-golden', will be available in build *201305252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/85f313954030
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #216084 - Wrong editor underline of pure virtual class member - type conversion operator