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 262745

Summary: Incorrect error highlighting in C++ code
Product: cnd Reporter: ExIngus
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Журнал среды IDE

Description ExIngus 2016-07-09 16:27:28 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_92
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.92-b14

Воспроизводимость: Происходит всегда

С++ project
C++ Standart C11

Incorrect error highlighting in the code:

int (*sa(int i))[] {

}

int main(int argc, char **argv) {
int (*(*subArray)(int index))[];
subArray = &sa;
return 0;
}
Comment 1 ExIngus 2016-07-09 16:27:39 UTC
Created attachment 160328 [details]
Журнал среды IDE
Comment 2 petrk 2016-07-12 11:20:28 UTC
Thanks! In a meantime c++11 style functions can be used (as a workaround):
auto sa(int i) -> int(*)[] {}
Comment 3 ExIngus 2016-07-12 11:33:20 UTC
Yes. More can be used typedef.