dlang-community / SDLang-D

An SDLang (Simple Declarative Language) library for D
http://sdlang.org
Other
121 stars 21 forks source link

Release build fails #54

Open hardliner66 opened 7 years ago

hardliner66 commented 7 years ago

With the newest version of SDLang-D (dependency "sdlang-d" version="~>0.10.1") the release build fails with the error "null dereference in function".

build command line: dependency "sdlang-d" version="~>0.10.1"

Code to reproduce:

import std.stdio;

import sdlang;

void main()
{
    writeln("Hello World");
}

Output: log.txt

Tested on Windows 10 x64.

dub version info: DUB version 1.1.1, built on Nov 30 2016 dmd version info: DMD32 D Compiler v2.072.1

Version 0.9.6 does compile in release mode.

MrSmith33 commented 7 years ago

This happens for me both on linux and windows, both 2.072 and 2.071. Only in release mode.

Abscissa commented 7 years ago

(Note: Apperently the "null dereference in function" is a compile-time error. That surprised me.)

In commit 6b2097f694421d1927d004e924aa7cb1e5d6bb2a, I've attempted to fix the null dereference the error is referring to. However, now the compiler just simply hangs (but again, only in release mode).

I think it's clear this is hitting on some compiler bug, although I'm at a bit of a loss as to narrowing it down from here. I've filed what I could at bugzilla: https://issues.dlang.org/show_bug.cgi?id=17135

schveiguy commented 7 years ago

Just posting a "me too". I was a bit puzzled by the null dereference as well.