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.
namespace bug257647 { void foo257647(int var); void foo257647(char *ptr); int main257647() { char *ptr1 = 0; char *ptr2 = 0; foo257647(ptr1 + 1); foo257647(1 + ptr1); foo257647(ptr1 - 1); foo257647(ptr2 - ptr1); return 0; } }
Fixed in http://hg.netbeans.org/cnd-main/rev/e7b24dddcf2d
Integrated into 'main-silver', will be available in build *201602100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e7b24dddcf2d User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #257908 - C pointer arithmetic doesn't work if there are no global "+" operators in a project
verified in builds on enum server
Verified in NetBeans 8.1 with latest updates.