|
|
|
|
|
by debugnik
173 days ago
|
|
> you have to turn off strict aliasing because inheritance is implemented by the old "common meta struct as first member" idiom You shouldn't have to turn off strict aliasing for that, struct pointers are allowed to alias pointers to their first member. Unless I'm missing some awkward compatibility rule that mruby breaks. |
|
[0] https://en.cppreference.com/w/c/language/object.html#Strict_... [1] https://en.cppreference.com/w/c/language/compatible_type.htm...