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 - Incorrect error highlighting in C++ code
Summary: Incorrect error highlighting in C++ code
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-09 16:27 UTC by ExIngus
Modified: 2016-07-12 14:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Журнал среды IDE (209.89 KB, text/plain)
2016-07-09 16:27 UTC, ExIngus
Details

Note You need to log in before you can comment on or make changes to this bug.
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.