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 235968

Summary: [74cat] Unexpected token 'virtual' in class destructor.
Product: cnd Reporter: kosmonaffft
Component: Code ModelAssignee: petrk
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 8   
Issue Type: DEFECT Exception Reporter:
Attachments: Bug screenshot...

Description kosmonaffft 2013-09-14 10:20:48 UTC
Created attachment 140081 [details]
Bug screenshot...

See screenshot...

Occurred only in combination with 'override' keyword.
Comment 1 soldatov 2013-09-14 14:45:34 UTC
C++11 code:

class A {
public:
    virtual ~A() noexcept {}
};

class B : public A {
public:
    virtual ~B() noexcept override {}
};

int main(int argc, char** argv) {
    B b;
    return 0;
}
Comment 2 kosmonaffft 2014-04-10 07:41:40 UTC
*** Bug 243665 has been marked as a duplicate of this bug. ***
Comment 3 kosmonaffft 2014-04-10 07:42:31 UTC
Still not fixed in 8.0...
Comment 4 petrk 2014-04-10 13:53:58 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/2d6aafcfb8d9
Comment 5 Quality Engineering 2014-04-18 02:40:25 UTC
Integrated into 'main-silver', will be available in build *201404180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2d6aafcfb8d9
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #235968 - [74cat] Unexpected token 'virtual' in class destructor.
Comment 6 Quality Engineering 2014-04-24 02:14:32 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/daee33a49366
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #235968 - [74cat] Unexpected token 'virtual' in class destructor.
(transplanted from 2d6aafcfb8d9a03173b973fd8da3bd73ad8d6770)
Comment 7 soldatov 2014-04-28 14:42:01 UTC
verified in NetBeans 8.0 patch1