[Bug c++/39415] static_cast used as downcast can silently lose const
--- Comment #2 from james dot dennett at gmail dot com 2010-07-18 21:39 --- 44916 is a duplicate of this bug (and includes a hacky fix, but no automated regression test). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39415
[Bug c++/44916] Incorrect function overloading with static_cast
--- Comment #1 from james dot dennett at gmail dot com 2010-07-18 21:37 --- Thanks to Ian for reporting this for me (my buganizer account wasn't well at the time). This appears to duplicate bug 39415. I have a hacky fix for this, adding a conversion to the correct target type