diff options
Diffstat (limited to 'compiler/ccgstmts.nim')
-rwxr-xr-x | compiler/ccgstmts.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index f982f2c22..bf3d6aea1 100755 --- a/compiler/ccgstmts.nim +++ b/compiler/ccgstmts.nim @@ -67,7 +67,8 @@ proc genConstStmt(p: BProc, t: PNode) = var c = it.sons[0].sym if sfFakeConst in c.flags: genSingleVar(p, it) - elif c.typ.kind in ConstantDataTypes and not (lfNoDecl in c.loc.flags): + elif c.typ.kind in ConstantDataTypes and not (lfNoDecl in c.loc.flags) and + c.ast.len != 0: # generate the data: fillLoc(c.loc, locData, c.typ, mangleName(c), OnUnknown) if sfImportc in c.flags: |