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/arith-3.c Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -8 at java.lang.String.charAt(String.java:658) at org.clank.support.char$ptr$CharSequence.$at(char.java:116) at org.llvm.adt.APInt.__toString(APInt.java:4138) at org.llvm.adt.APInt.__toString(APInt.java:4264) at org.clang.lex.impl.PPExpressionsStatics.EvaluateDirectiveSubExpr(PPExpressionsStatics.java:156) at org.clang.lex.Preprocessor.EvaluateDirectiveExpression(Preprocessor.java:5784)
Created attachment 157363 [details] stacktrace
*** Bug 256542 has been marked as a duplicate of this bug. ***
I was unable to reproduce this so far. I opened the same file - nothing happened. The content does not look platform specific
I was finally able to reproduce it with slight modifications in code. The error occurs when stringinizing APInt when calling diagnostics.
Fix in sputnik: 0aadaa8f70b6
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