I have tried to compile phobos 1.058 by LDC 0.9.2 on FreeBSD 7.3R.
First, I added "import std.moduleinit;" to object.d. After that, I run
"gmake -f freebsd.mak DMD=ldmd", then I met compilation errors. I
wonder if they are bugs of LDC?
ldmd -c -O -release -w internal/object.d
Assertion failed: (finalinit->getType() == ir->classInfo->getType()-
>getContainedType(0) && "__ClassZ initializer does not match the
ClassInfo type"), function DtoDefineClassInfo, file /home/amber/sohgo/
d/ldc/gen/classes.cpp, line 830.
gmake: *** [object.o] Abort trap: 6 (core dumped)
ldmd -c -O -release -w std/perf.d
std/perf.d(36): Error: class std.perf.PerformanceCounterScope!
(PerformanceCounter).PerformanceCounterScope storage class has no
effect: auto
std/perf.d(130): Error: template instance
std.perf.PerformanceCounterScope!(PerformanceCounter) error
instantiating
ldmd -c -O -release -w internal/trace.d
internal/trace.d(867): Error: not allowed in naked function
ldmd -c -O -release -w std/loader.d
std/loader.d(485): Error: class std.loader.ExeModule storage class has
no effect: auto
--
You received this message because you are subscribed to the Google Groups "LDC - the LLVM D compiler" group.
To post to this group, send email to
ldc...@googlegroups.com.
To unsubscribe from this group, send email to
ldc-dev+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/ldc-dev?hl=en.