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 254580 - printf() and size_t*, ptrdiff_t*
Summary: printf() and size_t*, ptrdiff_t*
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-21 08:41 UTC by soldatov
Modified: 2015-10-23 09:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-08-21 08:41:42 UTC
IDE recognizes size_t and ptrdiff_t, but editor fails on size_t* and ptrdiff_t*.

#include <stdio.h>
#include <stddef.h>

int main() {
    size_t st = sizeof(int);
    ptrdiff_t pt = 1;
    size_t* pst = &st;
    ptrdiff_t* ppt = &pt;
    printf("%zu %td", st, pt); // ok
    printf("%zn %tn\n", pst, ppt); // error
    return 0;
}
Comment 1 danilasergeyev 2015-08-27 16:02:58 UTC
fixed in change set:
https://hg.netbeans.org/cnd-main/rev/503e35474230
Comment 2 Quality Engineering 2015-08-28 01:23:23 UTC
Integrated into 'main-silver', will be available in build *201508280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/503e35474230
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #254580 printf() and size_t*, ptrdiff_t*
Comment 3 soldatov 2015-10-23 09:24:17 UTC
Verified. No test failures.