<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#c9">Comment # 9</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:john.loughran.colvin@gmail.com" title="John Colvin <john.loughran.colvin@gmail.com>"> <span class="fn">John Colvin</span></a>
</span></b>
<pre>(In reply to Iain Buclaw from <a href="show_bug.cgi?id=196#c8">comment #8</a>)
<span class="quote">> First, dustmite it. This should be possible to reproduce in a cross
> compiler too.</span >
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:
^
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>