diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 7a60e1ef7a..f9fa1a0f6b 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1982,7 +1982,8 @@ proc exprComplexConst(p: BProc, n: PNode, d: var TLoc) = putDataIntoDest(p, d, t, tmp) # This fixes bug #4551, but we really need better dataflow # analysis to make this 100% safe. - d.s = OnStatic + if t.kind notin {tySequence, tyString}: + d.s = OnStatic proc expr(p: BProc, n: PNode, d: var TLoc) = case n.kind