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 256628 - [newcodemodel] AssertionError: Invalid token lexed
Summary: [newcodemodel] AssertionError: Invalid token lexed
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 256548 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-16 15:12 UTC by Vladimir Voskresensky
Modified: 2016-01-29 15:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221195


Attachments
stacktrace (3.83 KB, text/plain)
2015-11-16 15:12 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2015-11-16 15:12:07 UTC
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)
Comment 1 Vladimir Voskresensky 2015-11-16 15:12:09 UTC
Created attachment 157362 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2015-11-16 16:47:59 UTC
*** Bug 256548 has been marked as a duplicate of this bug. ***
Comment 3 Vladimir Kvashin 2015-12-14 17:55:45 UTC
To reproduce, add the following to any file:

#if 'x
#endif
Comment 4 Vladimir Kvashin 2015-12-15 17:37:00 UTC
The fix (and test) in sputnik is 
  9057a7ef06a3
Not closing the bug as the binaries are not updated yet
Comment 5 Vladimir Kvashin 2015-12-17 19:58:04 UTC
Binaries update:
  ecc4c9530fa7
Comment 6 Quality Engineering 2015-12-22 02:26:47 UTC
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)