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 256296 - Additional parens in expression break parser
Summary: Additional parens in expression break parser
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-31 18:43 UTC by petrk
Modified: 2016-03-16 08:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
fix (3.84 KB, patch)
2015-11-02 20:46 UTC, petrk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description petrk 2015-10-31 18:43:28 UTC
struct AAA {
    int field;
};

int foo() {
    AAA *pointer = 0;
    // field is unresolved because of the most inner parens
    return (*((pointer)++)).field; 
}
Comment 1 petrk 2015-11-02 11:38:07 UTC
Fixed at enum: 303799:250eee268917
Comment 2 mrellis63 2015-11-02 17:04:32 UTC
Thank you for re-classifying and creating a new report.

It appears that you may have a fix for this already. I am not sure how to find the fix from this reference; "Fixed at enum: 303799:250eee268917"

Can you please provide link to a patch. Or advise how to locate from that reference.

Thanks,
Comment 3 petrk 2015-11-02 19:45:25 UTC
Hi!

You are right, fix is available, but unfortunately, according to the development process, it is now in the private repository, so I cannot provide you the link to the patch. It is not included into nightly build as well. Later (quite soon) it will be transplanted to the public cnd-main.

Thanks,
Petr
Comment 4 petrk 2015-11-02 20:46:35 UTC
Created attachment 157111 [details]
fix

I've attached the fix here in case if you want to apply it manually :)
Comment 5 Quality Engineering 2015-11-10 02:32:58 UTC
Integrated into 'main-silver', will be available in build *201511100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/eac6ef832545
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #256296 - Additional parens in expression break parser
(transplanted from 250eee26891750262d9b3a5e7617fb188c08a3dc)
Comment 6 soldatov 2015-11-20 22:19:39 UTC
Verified in NetBeans 8.1patch1