std/c/time.d const sysconf bug?
Dawid Ciężarkiewicz
dawid.ciezarkiewicz at asn.pl
Sun Jan 7 09:24:53 PST 2007
$ dmd
Digital Mars D Compiler v1
...
$ make
+ /home/dpc/stg/d/bin/dsss_build -I/home/dpc/stg/d/include/d -LIBPATH=/home/dpc/stg/d/lib/ -LIBPATH=./ -od.
server.d -Tserver
/home/dpc/stg/d/include/d/std/c/time.d(40): Error: non-constant expression
(sysconf)(2)
else version (linux)
{
extern (C) int sysconf(int);
const clock_t CLK_TCK = cast(clock_t) sysconf(2); // <---------- THIS
}
How can THIS be a const, hmm?
More information about the Digitalmars-d-bugs
mailing list