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.
Build: NetBeans IDE 8.1 (Build 20151116-3d5ad1f845f6) VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17 OS: SunOS User Comments: vv159170: /net/volvo/export/devarea/osprojects/gcc-master/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c Stacktrace: java.lang.AssertionError: Invalid token lexed at org.clang.lex.CharLiteralParser.<init>(CharLiteralParser.java:128) at org.clang.lex.impl.PPExpressionsStatics.EvaluateValue(PPExpressionsStatics.java:684) at org.clang.lex.Preprocessor.EvaluateDirectiveExpression(Preprocessor.java:5754) at org.clang.lex.Preprocessor.HandleIfDirective(Preprocessor.java:8633) at org.clang.lex.Preprocessor.HandleDirective(Preprocessor.java:4262) at org.clang.lex.Lexer.LexTokenInternal(Lexer.java:2800)
Created attachment 157362 [details] stacktrace
*** Bug 256548 has been marked as a duplicate of this bug. ***
To reproduce, add the following to any file: #if 'x #endif
The fix (and test) in sputnik is 9057a7ef06a3 Not closing the bug as the binaries are not updated yet
Binaries update: ecc4c9530fa7
Integrated into 'main-silver', will be available in build *201512220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f71f4a88985a User: Vladimir Kvashin <vkvashin@netbeans.org> Log: updated binaries after fixing #256628, #257133 and #256629 (Bug 256628 - [newcodemodel] AssertionError: Invalid token lexed. #57133 - [newcodemodel] AssertionError: Cannot modify const object! and #Bug 256629 - [newcodemodel] StringIndexOutOfBoundsException: String index out of range: -8) (transplanted from ecc4c9530fa77a51bd0c0ac1c32ec8a993aaf4b1)
Fixes of this bug: http://hg.netbeans.org/releases/rev/ecc4c9530fa7 http://hg.netbeans.org/releases/rev/ecc4c9530fa7