[Bug 196] Error building core/thread.d
via D.gnu
d.gnu at puremagic.com
Wed Oct 7 02:37:14 PDT 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=196
--- Comment #9 from John Colvin <john.loughran.colvin at gmail.com> ---
(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:
^
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.
--
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/835a6f53/attachment.html>
More information about the D.gnu
mailing list