yet another C++ bugfix
This commit is contained in:
parent
74c6c8c903
commit
d933fde40d
1 changed files with 4 additions and 3 deletions
|
|
@ -579,7 +579,8 @@ proc isAssignable(c: PContext, n: PNode): TAssignableResult =
|
|||
result = parampatterns.isAssignable(c.p.owner, n)
|
||||
|
||||
proc newHiddenAddrTaken(c: PContext, n: PNode): PNode =
|
||||
if n.kind == nkHiddenDeref:
|
||||
if n.kind == nkHiddenDeref and not (gCmd == cmdCompileToCpp or
|
||||
sfCompileToCpp in c.module.flags):
|
||||
checkSonsLen(n, 1)
|
||||
result = n.sons[0]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue