This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Irix6.5: Printing Long Doubles
- To: libstdc++ at gcc dot gnu dot org
- Subject: Irix6.5: Printing Long Doubles
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Thu, 31 May 2001 19:33:50 -0700
- Cc: Jeffrey Oldham <oldham at codesourcery dot com>
- Organization: CodeSourcery LLC
For gcc 3.0 and 3.1 on mips-sgi-irix6.5, printing long double values
yields garbage:
#include <iostream>
int
main()
{
long double ld = 1.2;
double d = ld;
std::cout << ld << std::endl;
std::cout << d << std::endl;
return 0;
}
machine> ./a.out
4.94066e-324
1.2
machine>
This is a regression from g++ 2.8.1. Is anyone else seeing this
difficulty?
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
#include <iostream>
int
main()
{
long double ld = 1.2;
double d = ld;
std::cout << ld << std::endl;
std::cout << d << std::endl;
return 0;
}