The code: int main() { long long double x; long long double v = 0.0; }
gets you: ~/ootbc/common$ g++ foo.cc foo.cc: In function 'int main()': foo.cc:3: warning: converting to 'long long int' from 'double' Either "long long double" is illegal and should be flagged on both declarations, or it is legal and should give you a floating point type not "long long int". -- Summary: Declared long long double has wrong type Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32888