mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
bug 50984 - fix class cast exceptions
This commit is contained in:
parent
9b4b4cabc4
commit
02d14a80c9
1 changed files with 2 additions and 1 deletions
|
@ -251,7 +251,8 @@ public class TemplateFactory extends ExtensibleSymbol implements ITemplateFactor
|
|||
private void memberDeclaration( ISymbol symbol ) throws ParserSymbolTableException{
|
||||
ISymbol previous = findPreviousSymbol( symbol, null );
|
||||
if( previous == null ) {
|
||||
//??
|
||||
//could happen in trying to define something for which we don't have a declaration
|
||||
throw new ParserSymbolTableException( ParserSymbolTableException.r_BadTemplate );
|
||||
} else {
|
||||
IContainerSymbol originalContainer = previous.getContainingSymbol();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue