Skip to content

Freeze at runtime when seq is used under the block statement #740

Closed
@demotomohiro

Description

@demotomohiro

mytests/test.nim:

block:
  var t: seq[int]
$ ./bin/nimony c mytests/test.nim
bin/nimsem  --isSystem m nimcache/sysvq0asl.1.nif nimcache/sysvq0asl.2.nif nimcache/sysvq0asl.2.idx.nif
bin/nimsem  m nimcache/tes9hvujc.1.nif nimcache/tes9hvujc.2.nif nimcache/tes9hvujc.2.idx.nif
cc -c   -Ivendor/mimalloc/include vendor/mimalloc/src/static.c -o nimcache/static.o
bin/hexer --bits:64 nimcache/tes9hvujc.2.nif
bin/nifc c --compileOnly --isMain  nimcache/tes9hvujc.c.nif
cc -c  -Imytests  nimcache/tes9hvujc.c -o nimcache/tes9hvujc.o
bin/hexer --bits:64 nimcache/sysvq0asl.2.nif
bin/nifc c --compileOnly  nimcache/sysvq0asl.c.nif
cc -c  -Imytests  nimcache/sysvq0asl.c -o nimcache/sysvq0asl.o
cc -o nimcache/tes9hvujc nimcache/static.o nimcache/tes9hvujc.o nimcache/sysvq0asl.o
$ ./nimcache/tes9hvujc

./nimcache/tes9hvujc never quit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions