--- Comment #10 from jakub at gcc dot gnu dot org 2008-10-07 19:01 ---
Fixed.
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
Status|ASSIGNED
--- Comment #9 from jakub at gcc dot gnu dot org 2008-10-07 18:50 ---
Subject: Bug 29609
Author: jakub
Date: Tue Oct 7 18:48:40 2008
New Revision: 140948
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140948
Log:
PR debug/29609
PR debug/36690
PR debug/37
A smaller testcase is:
==
#include
#include
void fillTime(double time, double& second)
{
time /= 1000.0;
second = std::fmod(time, 86400.0);
}
int main()
{
double d = 3.0935415006117e+23;
double s;
fillTime(d, s);
std::cout << s << std::endl;
}
==
s
Package: g++-4.3
Version: 4.3.2-1
Severity: important
Compile the following code with g++:
===
#include
#include
struct TimeStruct
{
int millisecond;
int second;
};
void fillTimeStruct(double time, TimeStruct& gt)
{
gt.millisecond = std::fmod(time, 1000.0);
time /= 1000.
4 matches
Mail list logo