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 271133 - inaccuracy tests: const char str[]= #include "welcome.h"
Summary: inaccuracy tests: const char str[]= #include "welcome.h"
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: Dev
Hardware: PC Other
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-20 19:52 UTC by soldatov
Modified: 2017-10-29 13:40 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 2017-07-20 19:52:01 UTC
I see "unexpected token" error in 1 of new test projects.

welcome.h:
"aaaaaaaaaaaaaaaaaaaa"

welcome.cc:
int main(int argc, char**argv) {
const char str[]=
#include "welcome.h"
; // unexpected token
    return 0;
}
Comment 1 Vladimir Voskresensky 2017-10-29 13:39:59 UTC
we have known problems with #include directives in the middle of statements/declarations/expressions.