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 186100 - Unresolved identifier in SS vector
Summary: Unresolved identifier in SS vector
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-13 13:22 UTC by Egor Ushakov
Modified: 2013-05-07 11:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2010-05-13 13:22:22 UTC
INFO [cnd.logger]: Infinite recursion in file FileImpl @-1372651888:14405327 /opt/sunstudio12.1/prod/include/CC/Cstd/vector prj:15110424KeyBasedUID on ProjectKey /opt/sunstudio12.1/prod/include/CC/CstdL class CLASS iterator[22978-25752][748:5-857:6]
java.lang.Exception: Infinite recursion in file FileImpl @-1372651888:14405327 /opt/sunstudio12.1/prod/include/CC/Cstd/vector prj:15110424KeyBasedUID on ProjectKey /opt/sunstudio12.1/prod/include/CC/CstdL class CLASS iterator[22978-25752][748:5-857:6]
        at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:164)
        at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getBaseClasses(CsmProjectContentResolver.java:1286)
        at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getBaseClasses(CsmProjectContentResolver.java:1276)
        at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getBaseClasses(CsmProjectContentResolver.java:986)
        at org.netbeans.modules.cnd.completion.cplusplus.CsmFinderImpl.findBaseClasses(CsmFinderImpl.java:528)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:1371)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveParams(CsmCompletionQuery.java:975)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:1007)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:319)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:300)
        at org.netbeans.modules.cnd.completion.csm.CompletionUtilities.findItemsReferencedAtCaretPos(CompletionUtilities.java:157)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:372)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:328)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findReferencedObject(ReferencesSupport.java:221)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObject(ReferenceImpl.java:76)
        at org.netbeans.modules.cnd.highlight.semantic.ModelUtils$FieldReferenceCollector.visit(ModelUtils.java:131)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter$2.visit(SemanticHighlighter.java:240)
        at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl._accept(FileReferencesImpl.java:141)
        at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.accept(FileReferencesImpl.java:98)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.update(SemanticHighlighter.java:232)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.update(SemanticHighlighter.java:161)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.run(SemanticHighlighter.java:295)
        at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$5.run(CsmFileTaskFactory.java:466)
[catch] at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:483)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1415)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1954)
Comment 1 nnnnnk 2010-05-18 13:45:31 UTC
That's ok.
That means that there are infinite template specialization like

template <int t> struct A {
};

template <int t> struct A {

};
Comment 2 nnnnnk 2010-05-18 13:47:21 UTC
template <int t> struct A : public A<t-1> {
};

template <int t> struct B {
    A<t>::type b;
};
Comment 3 Egor Ushakov 2010-05-18 15:39:22 UTC
Sun Studio stl vector line 1068, unresolved __start.p