Re: A simple question about virtual destructors.

2016-06-02 Thread Marcin Baczyński
2016-06-02 11:55 GMT+02:00 K : > Hi, > > My question is what if a compiler will generate a virtual destructor (or > convert a nonvirtual to virtual) in a base class if the base class has at > least one virtual function and classes down in the hierarchy have > nontrivial destructors? In other word

Incorrect casting?

2010-03-09 Thread Marcin Baczyński
Hi, the following piece of code produces different output on svn trunk and gcc-4_4-branch: #include int main() { struct { unsigned bar:1; } foo; foo.bar = 0x1; printf("%08x\n", (unsigned char)(foo.bar * 0xfe)); printf("%08x\n", (unsigned char)(foo.bar * 0xff));