Skip to content

Compiler bug in my project #2 #1143

@bbodi

Description

@bbodi

Steps to reproduce:
git clone https://github.com/bbodi/WhiteStag.git
cd WhiteStag
git pull origin compilerBugs
nimrod c persister

For this bug, you have to comment out this line "doAssert(self.pExecuting, "View isn't pExecuting!")" at view.nim:249 (see here: #1142)

Copy these DLL-s(SDL.dll, SDL_ttf.dll, sqlite3.dll, https://dl.dropboxusercontent.com/u/11700363/dlls.zip) to the WhiteStag folder.

nimrod c -r mindy\mindy.nim

Traceback (most recent call last)
mindy.nim(82) mindy
view.nim(459) addView
view.nim(284) modified
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Error: execution of an external program failed

This bug only occurs when TOption[int64] is used in types.nim:16. If I change it to TOption[int], it runs fine.

My compiler:

Nimrod Compiler Version 0.9.5 (2014-04-25) [Windows: i386]
Copyright (c) 2006-2014 by Andreas Rumpf

active boot switches: -d:release --gc:markAndSweep --gc:generational

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions