http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58815
ulf <q1 at oxyba dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janis187 at us dot ibm.com --- Comment #3 from ulf <q1 at oxyba dot de> --- i checked the code in the file decimal (/usr/include/c++/4.7/decimal/). The programmer already considered conversion to integers. however the lines are commented. for std::decimal::decimal32 ... line 253 // 3.2.2.5 Conversion to integral type. (DISABLED) line 254 //operator long long() const { return (long long)__val; } ... for std::decimal::decimal64 ... line 336 // 3.2.3.5 Conversion to integral type. (DISABLED) line 337 //operator long long() const { return (long long)__val; } ... for std::decimal::decimal128 ... line 420 // 3.2.4.5 Conversion to integral type. (DISABLED) line 421 //operator long long() const { return (long long)__val; } ... i uncommented it and my problems were gone. but for some reason the code is disabled on purpose. what is the reason for it?