www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dtl - MinTL segfault.

reply Bastiaan Veelo <Bastiaan.N.Veelo ntnu.no> writes:
This is likely a bug in dmd, probably related to 
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/1810

dmd 0.101 on Linux.


#import mintl.util;


#class. */
#interface Base






#class Foo : Base




#class Bar : Base




#int main()














Sep 13 2004
parent "Ben Hinkle" <bhinkle mathworks.com> writes:
Bummer. It looks like TypeInfo compare functions are busted for interfaces.
If you try to run
 TypeInfo ti = typeid(foo);
 ti.compare(&foo,&bar);
you'll error out. On win32 I get a Win32 Exception. Probably since the
declaration of compare is with void* instead of a specific type it gets all
confused about calling opCmp. Nasty. I'm cross-posting to bugs.

"Bastiaan Veelo" <Bastiaan.N.Veelo ntnu.no> wrote in message
news:ci495h$1alr$1 digitaldaemon.com...
 This is likely a bug in dmd, probably related to
 http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/1810

 dmd 0.101 on Linux.


 #import mintl.util;


 #class. */
 #interface Base






 #class Foo : Base




 #class Bar : Base




 #int main()














Sep 13 2004