<html>
<head>
<base href="http://bugzilla.gdcproject.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Error building core/thread.d"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=196#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Error building core/thread.d"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=196">bug 196</a>
from <span class="vcard"><a class="email" href="mailto:ibuclaw@gdcproject.org" title="Iain Buclaw <ibuclaw@gdcproject.org>"> <span class="fn">Iain Buclaw</span></a>
</span></b>
<pre>(In reply to John Colvin from <a href="show_bug.cgi?id=196#c9">comment #9</a>)
<span class="quote">> (In reply to Iain Buclaw from <a href="show_bug.cgi?id=196#c8">comment #8</a>)
> > 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:
> ^
> </span >
OK, that's a good start.
<span class="quote">>
> 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.</span >
That's reproducible with DMD. Raised upstream:
<a href="https://issues.dlang.org/show_bug.cgi?id=15172">https://issues.dlang.org/show_bug.cgi?id=15172</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>