Guest User

Untitled

a guest
Nov 14th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.42 KB | None | 0 0
  1. # Potentially a compiler bug:
  2. # - A proc() without the Loop parameter doesn't crash the compiler
  3. # - a proc(l: Loop) will cause a consistent compiler crash ==> SIGSEGV: Illegal storage access. (Attempt to read from nil?)
  4. # Compiler is "Nim Compiler Version 0.10.1 (2014-11-10) [Linux: amd64]" from master branch
  5.  
  6. type
  7.   Loop* = ref object
  8.     onBeforeSelect*: proc(l: Loop)   # <== this (l: Loop) causes a compiler crash
Advertisement
Add Comment
Please, Sign In to add comment