make tmissingbracket compile for C++; refs #7870

This commit is contained in:
Araq 2018-10-30 16:06:27 +01:00
commit b3d80dac9c

View file

@ -741,7 +741,7 @@ proc genAddr(p: BProc, e: PNode, d: var TLoc) =
initLocExpr(p, e.sons[0], a) initLocExpr(p, e.sons[0], a)
putIntoDest(p, d, e, "&" & a.r, a.storage) putIntoDest(p, d, e, "&" & a.r, a.storage)
#Message(e.info, warnUser, "HERE NEW &") #Message(e.info, warnUser, "HERE NEW &")
elif mapType(p.config, e.sons[0].typ) == ctArray or isCppRef(p, e.sons[0].typ): elif mapType(p.config, e.sons[0].typ) == ctArray or isCppRef(p, e.typ):
expr(p, e.sons[0], d) expr(p, e.sons[0], d)
else: else:
var a: TLoc var a: TLoc