diff options
Diffstat (limited to 'idlc/source')
-rw-r--r-- | idlc/source/parser.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y index ec1dfc0ce31d..bedf2e9c8183 100644 --- a/idlc/source/parser.y +++ b/idlc/source/parser.y @@ -601,7 +601,8 @@ forward_dcl : { pForward = new AstInterface(*$1, NULL, pScope); - if ( pDecl = pScope->lookupByName(pForward->getScopedName()) ) + pDecl = pScope->lookupByName(pForward->getScopedName()); + if ( pDecl ) { if ( (pDecl != pForward) && (pDecl->getNodeType() == NT_interface) ) |