[phobos] std.complex doesn't pass unittest

Andrei Alexandrescu andrei at erdani.com
Sun May 23 13:48:53 PDT 2010


I must be missing something. I updated dmd to 2.046, updated druntime 
and phobos, and am trying make unittest on Linux.

make --no-print-directory -f GNUmakefile OS=posix BUILD=debug unittest
Testing generated/posix/debug/unittest/std/complex
std/complex.d(309): Error: 'this' is not a scalar, it is a Complex!(double)
std/complex.d(309): Error: 'this' is not of arithmetic type, it is a 
Complex!(double)
std/complex.d(309): Error: 'this' is not of arithmetic type, it is a 
Complex!(double)
std/complex.d(313): Error: 'this' is not a scalar, it is a Complex!(double)
std/complex.d(313): Error: 'this' is not of arithmetic type, it is a 
Complex!(double)
std/complex.d(313): Error: 'z' is not of arithmetic type, it is a 
Complex!(double)
std/complex.d(314): Error: 'this' is not a scalar, it is a Complex!(double)
std/complex.d(314): Error: 'this' is not of arithmetic type, it is a 
Complex!(double)
std/complex.d(314): Error: 'z' is not of arithmetic type, it is a 
Complex!(double)
std/complex.d(317): Error: Complex!(double) ^^= real is not supported
std/complex.d(152): Error: template instance 
std.complex.Complex!(double).Complex.opOpAssign!(op,int) error instantiating
std/complex.d(460):        instantiated from here: opBinary!("^^",int)
std/complex.d(460): Error: template instance 
std.complex.Complex!(double).Complex.opBinary!("^^",int) error instantiating
make[1]: *** [generated/posix/debug/unittest/std/complex] Error 1
make: *** [unittest] Error 2

I must have a local problem that you guys don't. What am I missing?

Andrei


More information about the phobos mailing list