Compiling using ldmd2 crashes, any ideas?
Gary Willoughby
dev at nomad.so
Fri Oct 11 04:04:30 PDT 2013
On Thursday, 10 October 2013 at 16:35:34 UTC, David Nadlinger
wrote:
> We are going to need some kind of test case to be able to track
> this down.
>
> David
Here's a simple test case, save as file.d
import std.stdio;
import std.file;
void main()
{
auto entries = dirEntries(".", "*",
SpanMode.shallow, false);
writeln("crashes before this compiles");
}
Compile with: rdmd --compiler=ldc2 file.d
Error:
/tmp/.rdmd-1001/rdmd-test.d-E715299626833E7BD89AAECC25A35A6B/test.o:(.rodata._D123TypeInfo_S3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCounted6__initZ[_D123TypeInfo_S3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCounted6__initZ]+0x60):
undefined reference to
`_D3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCounted10__postblitMFZv'
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1
More information about the digitalmars-d-ldc
mailing list