[Issue 1811] TypeInfo usage leads to seg fault at runtime
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 30 13:26:44 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1811
------- Comment #1 from kamm-removethis at incasoftware.de 2008-01-30 15:26 -------
Note that classes or virtual functions are not responsible. The same behaviour
is shown by
import std.stdio;
void main()
{
int foo() { return 0; }
int bar() { return 0; }
auto t1 = typeid(typeof(foo));
auto t2 = typeid(typeof(bar));
t1.tsize(); // crash
}
--
More information about the Digitalmars-d-bugs
mailing list