Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release build fails #54

Open
hardliner66 opened this issue Dec 20, 2016 · 3 comments
Open

Release build fails #54

hardliner66 opened this issue Dec 20, 2016 · 3 comments

Comments

@hardliner66
Copy link

hardliner66 commented Dec 20, 2016

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
Copy link

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

@Abscissa Abscissa changed the title Release build fails on windows Release build fails Jan 31, 2017
@Abscissa
Copy link
Collaborator

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

In commit 6b2097f, 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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants