[Bug 196] Error building core/thread.d

via D.gnu d.gnu at puremagic.com
Wed Oct 7 03:43:46 PDT 2015


http://bugzilla.gdcproject.org/show_bug.cgi?id=196

--- Comment #10 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to John Colvin from comment #9)
> (In reply to Iain Buclaw from comment #8)
> > First, dustmite it.  This should be possible to reproduce in a cross
> > compiler too.
> 
> Ok, after dustmite and a little manual cleaning:
> 
> //thread.d
> class ThreadError : Error
> {
>     this(string )
>     {
>         super(msg, file, line);
>     }
> }
> 
> void onThreadError() {
>     __gshared ThreadError = new ThreadError(null);
> }
> 
> $ /Users/johncolvin/Documents/GDC/objdir/./gcc/gdc
> -B/Users/johncolvin/Documents/GDC/objdir/./gcc/
> -B/opt/gdc/x86_64-apple-darwin15.0.0/bin/
> -B/opt/gdc/x86_64-apple-darwin15.0.0/lib/ -isystem
> /opt/gdc/x86_64-apple-darwin15.0.0/include -isystem
> /opt/gdc/x86_64-apple-darwin15.0.0/sys-include    -o thread.o -Wall -Werror
> -g -frelease -O2 -nostdinc -pipe -Wno-deprecated -I
> ../../../../../gcc-5.2.0/libphobos/libdruntime -I
> ../x86_64-apple-darwin15.0.0 -I ../  -c thread.d
> 
> <stdin>:109:1: error: unexpected token at start of statement
> .3614:
> ^
> 

OK, that's a good start.


> 
> If I comment out the super line, I get
> 
> thread.d:3:5: error: constructor thread.ThreadError.this no match for
> implicit super() call in constructor
>      this(string )
>      ^
> Assertion failed: (!fd->semantic3Errors), function ctfeCompile, file
> ../../gcc-5.2.0/gcc/d/dfrontend/interpret.c, line 699.
> cc1d: internal compiler error: Abort trap: 6
> 
> instead. The compiler hangs there and Ctrl-c was required.


That's reproducible with DMD.  Raised upstream:
https://issues.dlang.org/show_bug.cgi?id=15172

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20151007/a167d224/attachment.html>


More information about the D.gnu mailing list