1// 981204 bkoz 2// g++/18208 3// Build don't link: 4 5typedef unsigned int uint_32; 6 7class puertorico { 8public: 9 void *f (); 10private: 11 uint_32 member; 12}; 13 14void foo( ) 15{ 16 uint_32 ui; 17 puertorico obj; 18 19 // Bug using static_cast<> 20 ui = static_cast<uint_32>(obj); // ERROR - // ERROR - 21 22 // Bug when missing the pair of braces 23 ui = (uint_32) obj.f; // ERROR - // ERROR - 24} 25 26