http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51379 --- Comment #1 from Piotr Wyderski <piotr.wyderski at gmail dot com> 2011-12-01 12:58:16 UTC --- Both static_cast and C-type cast work as expected.