mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Patch for Bryan - 182719 - Prevents a potential stack overflow error with virtual base classes.
This commit is contained in:
parent
fce61429ce
commit
42cc1b5978
1 changed files with 5 additions and 4 deletions
|
@ -1313,9 +1313,10 @@ public class CPPSemantics {
|
||||||
data.visited = new ObjectSet(2);
|
data.visited = new ObjectSet(2);
|
||||||
if (bScope != null)
|
if (bScope != null)
|
||||||
data.visited.put(bScope);
|
data.visited.put(bScope);
|
||||||
} else if ( !data.inheritanceChain.containsKey(bScope) ) {
|
} else if ( bScope != null ) {
|
||||||
|
if ( !data.inheritanceChain.containsKey(bScope) )
|
||||||
visitVirtualBaseClasses( data, (ICPPClassType) b );
|
visitVirtualBaseClasses( data, (ICPPClassType) b );
|
||||||
} else {
|
else
|
||||||
data.problem = new ProblemBinding( null, IProblemBinding.SEMANTIC_CIRCULAR_INHERITANCE, cls.getNameCharArray() );
|
data.problem = new ProblemBinding( null, IProblemBinding.SEMANTIC_CIRCULAR_INHERITANCE, cls.getNameCharArray() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue