I have filed a bug about the fatal error. http://bugs.freepascal.org/view.php?id=20874 Should I also file a bug about the other problem (IF not working properly with QWordBool) or is this intended or undefined behavior?