Re: dmd2 assertion failure when comparing pointers

2011-02-21 Thread Matthias Pleh
Am 21.02.2011 19:00, schrieb bearophile: Matthias Pleh: Also, shouldn't an assert always reproted as a bug? Added: http://d.puremagic.com/issues/show_bug.cgi?id=5633 Bye, bearophile Ah, thanks!

Re: dmd2 assertion failure when comparing pointers

2011-02-21 Thread bearophile
Matthias Pleh: > Also, shouldn't an assert always reproted as a bug? Added: http://d.puremagic.com/issues/show_bug.cgi?id=5633 Bye, bearophile

dmd2 assertion failure when comparing pointers

2011-02-21 Thread Matthias Pleh
Maybe a little stupid, but I get an assert when I try to compare a valid pointer with an int casted pointer. I know, I could compare the pointer itself, but shouldn't is-poerator also work? Also, shouldn't an assert always reproted as a bug? struct Test {} void main() { Test t,t2; boo