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 254803 - printf() and extra spaces
Summary: printf() and extra spaces
Status: RESOLVED 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-28 08:58 UTC by soldatov
Modified: 2015-08-29 03:03 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-28 08:58:27 UTC
In Oracle Solaris Studio I see this problem in inactive preprocessor block (see y.tab.c file in LexYacc sample).
In NetBeans I see this bug in active block only.

==================================================================
#include <cstdio>

using namespace std;

#if 0
printf( "Error recovery discards " ); // <-- Wrong numbers of arguments (in Oracle Solaris Studio only)
#endif

int main(int argc, char** argv) {
printf( "Error recovery discards" ); // <-- Wrong numbers of arguments

    return 0;
}
==================================================================
Comment 1 danilasergeyev 2015-08-28 11:24:22 UTC
fixed in change set:
https://hg.netbeans.org/cnd-main/rev/e9c294a4ef70
Comment 2 Quality Engineering 2015-08-29 03:03:44 UTC
Integrated into 'main-silver', will be available in build *201508290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e9c294a4ef70
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #254803 printf() and extra spaces