1
0
Fork 0
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:
Doug Schaefer 2007-04-17 19:55:31 +00:00
parent fce61429ce
commit 42cc1b5978

View file

@ -1313,9 +1313,10 @@ public class CPPSemantics {
data.visited = new ObjectSet(2);
if (bScope != null)
data.visited.put(bScope);
} else if ( !data.inheritanceChain.containsKey(bScope) ) {
} else if ( bScope != null ) {
if ( !data.inheritanceChain.containsKey(bScope) )
visitVirtualBaseClasses( data, (ICPPClassType) b );
} else {
else
data.problem = new ProblemBinding( null, IProblemBinding.SEMANTIC_CIRCULAR_INHERITANCE, cls.getNameCharArray() );
}
}