[LLVMdev] Plea for help
Finn S Andersen
finna at synputer.com
Wed May 5 03:48:00 PDT 2004
Chris Lattner wrote:
>Could you try compiling and running this program:
>
>---
>#include <limits>
>#include <iostream>
>int main() {
> std::cerr << std::numeric_limits<float>::infinity() << "\n";
>}
>---
>
>
Sure thing. It prints "0". Calling that inifinity is somewhat
of a stretch, isn't it ?
What on earth is going on here?
Log:
----------
[finna at coplin11 debug]$ cat - > tst.cpp
#include <limits>
#include <iostream>
int main() {
std::cerr << std::numeric_limits<float>::infinity() << "\n";
}
[finna at coplin11 debug]$ g++ tst.cpp
[finna at coplin11 debug]$ ./a.out
0
----------
Thanks a lot for your time and dedication on this subject.
Best regards
/Finn
More information about the llvm-dev
mailing list