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 217089

Summary: "#define AAA 1 ## 0" line breaks parser
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 7.3   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2012-08-20 09:22:33 UTC
a lot of parser errors in valid C code:

#include <stdio.h>
int main() {
#define AAA 1 ## 0
    if (AAA == 10) {
        puts("OK");
    }
    return (0);
}
Comment 1 Vladimir Voskresensky 2012-09-04 11:01:18 UTC
fixed + test:
http://hg.netbeans.org/cnd-main/rev/ee58386bd4d0
Comment 2 Quality Engineering 2012-09-05 02:04:52 UTC
Integrated into 'main-golden', will be available in build *201209050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ee58386bd4d0
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #217089 - "#define AAA 1 ## 0" line breaks parser