www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - std.loader broken on linux?

reply Johan Granberg <lijat.meREM OVE.gmail.com> writes:
bud -inline -release -O  -full -odbin -silent -lib -allobj sylph/core/core.d
/usr/lib/dmd/src/phobos/std/loader.d(358): Error: shadowing declaration
std.loader.ExeModule_Load_.mi is deprecated
/usr/lib/dmd/src/phobos/std/loader.d(419): Error: delete aa[key] deprecated,
use aa.remove(key)

Is anyone else getting these errors? To me it looks like the std loader
module hasn't been updated correctly. (dmd version 1.0)
Jan 12 2007
parent reply Johan Granberg <lijat.meREM OVE.gmail.com> writes:
Johan Granberg wrote:

 bud -inline -release -O  -full -odbin -silent -lib -allobj
 sylph/core/core.d /usr/lib/dmd/src/phobos/std/loader.d(358): Error:
 shadowing declaration std.loader.ExeModule_Load_.mi is deprecated
 /usr/lib/dmd/src/phobos/std/loader.d(419): Error: delete aa[key]
 deprecated, use aa.remove(key)
 
 Is anyone else getting these errors? To me it looks like the std loader
 module hasn't been updated correctly. (dmd version 1.0)

When I changed loader.d to correct these errors I got this error. bud -inline -release -O -full -odbin -silent -lib -allobj sylph/core/core.d Internal error: toir.c 182
Jan 12 2007
parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Johan Granberg wrote:
 Johan Granberg wrote:
 
 bud -inline -release -O  -full -odbin -silent -lib -allobj
 sylph/core/core.d /usr/lib/dmd/src/phobos/std/loader.d(358): Error:
 shadowing declaration std.loader.ExeModule_Load_.mi is deprecated
 /usr/lib/dmd/src/phobos/std/loader.d(419): Error: delete aa[key]
 deprecated, use aa.remove(key)

 Is anyone else getting these errors? To me it looks like the std loader
 module hasn't been updated correctly. (dmd version 1.0)

When I changed loader.d to correct these errors I got this error. bud -inline -release -O -full -odbin -silent -lib -allobj sylph/core/core.d Internal error: toir.c 182

Do you get the same error if you try compiling the deprecated version with -d? Stewart.
Jan 13 2007
parent reply Johan Granberg <lijat.meREM OVE.gmail.com> writes:
Stewart Gordon wrote:

 Johan Granberg wrote:
 Johan Granberg wrote:
 
 bud -inline -release -O  -full -odbin -silent -lib -allobj
 sylph/core/core.d /usr/lib/dmd/src/phobos/std/loader.d(358): Error:
 shadowing declaration std.loader.ExeModule_Load_.mi is deprecated
 /usr/lib/dmd/src/phobos/std/loader.d(419): Error: delete aa[key]
 deprecated, use aa.remove(key)

 Is anyone else getting these errors? To me it looks like the std loader
 module hasn't been updated correctly. (dmd version 1.0)

When I changed loader.d to correct these errors I got this error. bud -inline -release -O -full -odbin -silent -lib -allobj sylph/core/core.d Internal error: toir.c 182

Do you get the same error if you try compiling the deprecated version with -d? Stewart.

yes bud -d -inline -release -O -full -odbin -silent -lib -allobj sylph/core/core.d Internal error: toir.c 182
Jan 13 2007
parent reply Johan Granberg <lijat.meREM OVE.gmail.com> writes:
Johan Granberg wrote:

 Stewart Gordon wrote:
 
 Johan Granberg wrote:
 Johan Granberg wrote:
 
 bud -inline -release -O  -full -odbin -silent -lib -allobj
 sylph/core/core.d /usr/lib/dmd/src/phobos/std/loader.d(358): Error:
 shadowing declaration std.loader.ExeModule_Load_.mi is deprecated
 /usr/lib/dmd/src/phobos/std/loader.d(419): Error: delete aa[key]
 deprecated, use aa.remove(key)

 Is anyone else getting these errors? To me it looks like the std loader
 module hasn't been updated correctly. (dmd version 1.0)

When I changed loader.d to correct these errors I got this error. bud -inline -release -O -full -odbin -silent -lib -allobj sylph/core/core.d Internal error: toir.c 182

Do you get the same error if you try compiling the deprecated version with -d? Stewart.

yes bud -d -inline -release -O -full -odbin -silent -lib -allobj sylph/core/core.d Internal error: toir.c 182

reduced test case: johan Cyclop:~/Desktop/sylph$ cat test.d module test; import st.stackcontext; class Test{ StackContext context; private void init(char[][] argvs){ context=new StackContext({}); } this(char[][] argvs){ init(argvs); } } void main(char[][] args){ new Test(args); } johan Cyclop:~/Desktop/sylph$ dmd -inline test.d Internal error: toir.c 182 johan Cyclop:~/Desktop/sylph$
Jan 15 2007
parent Johan Granberg <lijat.meREM OVE.gmail.com> writes:
Johan Granberg wrote:

 johan Cyclop:~/Desktop/sylph$ cat test.d
 module test;
 import st.stackcontext;
 
 class Test{
 StackContext context;
 private void init(char[][] argvs){
 context=new StackContext({});
 }
 this(char[][] argvs){
 init(argvs);
 }
 }
 
 void main(char[][] args){
 new Test(args);
 }
 
 johan Cyclop:~/Desktop/sylph$ dmd -inline test.d
 Internal error: toir.c 182
 johan Cyclop:~/Desktop/sylph$

Submitted to bugzilla Issue#: 853
Jan 17 2007