killux
Joined: 03 Oct 2009 Posts: 1 Location: Germany
|
Posted: Sat Oct 03, 2009 3:09 am Post subject: Error on tango.net.http.HttpGet.read |
|
|
Hi,
compiling this code results in an error message:
Code: | import tango.io.Console;
import tango.net.http.HttpGet;
void main ()
{
auto site = new HttpGet ("http://www.dsource.org/projects/ldc");
Cout (cast(char[]) site.read) ();
} |
Code: | $ ldc --version
LLVM D Compiler rev. 1583:593f99fddd2f (2009-09-22 20:26 +0200)
based on DMD v1.045 and llvm 2.6 (2009-10-01 17:12:41 +0200) |
Code: | $ ldc test.d
$ ./test
Illegal instruction |
I can't explain why this should be wrong, since it is mentioned in the documentation for HttpGet, too.
Thus, I suppose that it is a LDC related bug and not caused by Tango itself.
Cheers
Sebastian |
|