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 Dev (Build 20140822-b2c5edcd2a67) VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26 OS: SunOS User Comments: alexvsimon: xref on LLVM34 Stacktrace: java.lang.Exception: SUID: STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8], STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8] at org.netbeans.modules.cnd.utils.CndUtils.severe(CndUtils.java:200) at org.netbeans.modules.cnd.utils.CndUtils.assertTrue(CndUtils.java:185) at org.netbeans.modules.cnd.modelimpl.uid.UIDObjectFactory.writeUID(UIDObjectFactory.java:128) at org.netbeans.modules.cnd.modelimpl.csm.TypeBasedSpecializationParameterImpl.write(TypeBasedSpecializationParameterImpl.java:252) at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeSpecializationParameter(PersistentUtils.java:598) at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeSpecializationParameters(PersistentUtils.java:587)
Created attachment 148843 [details] stacktrace
Created attachment 148844 [details] stacktrace open file ParseObjc.cpp from LLVM33
Created attachment 148845 [details] stacktrace open file StackAddrEscapeChecker.cpp from LLVM34
The simplest test case: template <typename T, unsigned N> class SmallVector { }; void foo() const { class CallBack { public: SmallVector<std::pair<int, int>, 10> V; }; CallBack cb; cb.V[1].second; }
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=211388
Created attachment 152381 [details] stacktrace I can't edit such simple code because generates exceptions #include <iostream> #include <map> #include <algorithm> using namespace std; int main() { map<int, int> m = { {1, 1}, {2, 2} }; for_each(m.begin(), m.end(), [](pair<int, int> p) { cout << p.first << endl; }); return 0; }
Fixed in http://hg.netbeans.org/cnd-main/rev/d05d80288c52
Integrated into 'main-silver', will be available in build *201503050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d05d80288c52 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #246643 - Exception: SUID: STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8], STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8] (edit)