NIXPKGS-30: floorf and other math functions in C++s <cmath> go into infinite recursion
Test program:
#include
#include
using namespace std;int main()
{
float x;
scanf(“%f”, &x);
printf("%f
", floorf(x));
}This happens with G++ 4.0.x and 4.1.x in Nixpkgs, but not 3.4.6.
MythTV crashes as a result of this (stack overflow). Surprised that not many other C++ programs (e.g., Firefox) crash as well…
Submitted on 15 October 2006 at 19:28
Log in to post comments