http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53116
mattipee at yahoo dot co.uk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mattipee at yahoo dot co.uk --- Comment #1 from mattipee at yahoo dot co.uk 2012-04-25 14:28:47 UTC --- With "int main() { Di<1>().k(); }": bad.cpp: In instantiation of ‘void Di<size>::k() [with int size = 1]’: bad.cpp:32:15: required from here bad.cpp:4:10: error: ‘void B::f()’ is protected void f(); ^ bad.cpp:24:9: error: within this context static_cast<B *>(this)->f(); // no error here, BUG ^