fixes #904
This commit is contained in:
parent
505b77cb66
commit
405cd7d1fb
1 changed files with 4 additions and 0 deletions
|
|
@ -792,6 +792,10 @@ proc semIndirectOp(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
|||
n.flags.incl nfExprCall
|
||||
result = semOverloadedCallAnalyseEffects(c, n, nOrig, flags)
|
||||
if result == nil: return errorNode(c, n)
|
||||
elif result.kind notin nkCallKinds:
|
||||
# the semExpr() in overloadedCallOpr can even break this condition!
|
||||
# See bug #904 of how to trigger it:
|
||||
return result
|
||||
#result = afterCallActions(c, result, nOrig, flags)
|
||||
fixAbstractType(c, result)
|
||||
analyseIfAddressTakenInCall(c, result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue