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

Summary: inaccuracy tests: const char str[]= #include "welcome.h"
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

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.