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 251621

Summary: Invalid recognition of function with reversed return type and virtual keyword order
Product: cnd Reporter: mariusz_m
Component: Code ModelAssignee: petrk
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Hint

Description mariusz_m 2015-04-03 11:19:47 UTC
Created attachment 153017 [details]
Hint

NB 8.0.2 can't recognize member function definition like this:

class SomeClass
{
   size_t virtual get_extra_memory(image_header_t const *src);
};

In my current work I often see that peoples used to write code like above, instead of

class SomeClass
{
    virtual size_t get_extra_memory(image_header_t const *src);
};

Of course booth forms are correct.
Comment 1 petrk 2015-05-14 13:22:20 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/43dc75bc28d0
Comment 2 Quality Engineering 2015-05-15 02:40:12 UTC
Integrated into 'main-silver', will be available in build *201505150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/43dc75bc28d0
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #251621 - Invalid recognition of function with reversed return type and virtual keyword order