make tmissingbracket compile for C++; refs #7870

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

View File

@@ -741,7 +741,7 @@ proc genAddr(p: BProc, e: PNode, d: var TLoc) =
initLocExpr(p, e.sons[0], a)
putIntoDest(p, d, e, "&" & a.r, a.storage)
#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)
else:
var a: TLoc