www.digitalmars.com         C & C++   DMDScript  

c++ - DMC Math Bug

reply xharbour_deletethis telkom.net.id (Andi Jahja) writes:
The following codes show DMC bug:

/--- begin ---
            #include <stdio.h>
            typedef struct
            {
               double         dd;
               long long int  ll;
            } UN;

            const char * cmp( UN * pU )
            {
               return pU->dd >= pU->ll ? "OK" : "ERRROR";
            }

            int main( void )
            {
               UN u = { 10.50, 10 };
               printf( "%s\n", cmp( &u ) );
               return 0;
            }

/--- end ---

Will this very bad bug be fixed?
--
Andi
Aug 20 2010
parent reply Walter Bright <newshound2 digitalmars.com> writes:
Andi Jahja wrote:
 Will this very bad bug be fixed?

I don't have a schedule for it, but you can track it here: http://bugzilla.digitalmars.com/issues/show_bug.cgi?id=79
Aug 20 2010
parent reply xharbour_deletethis telkom.net.id (Andi Jahja) writes:
On Fri, 20 Aug 2010 11:47:46 -0700, Walter Bright
<newshound2 digitalmars.com> wrote:

Andi Jahja wrote:
 Will this very bad bug be fixed?

I don't have a schedule for it, but you can track it here: http://bugzilla.digitalmars.com/issues/show_bug.cgi?id=79

Thanks, but this made DMC be trashed for serious application until the bug fixed. -- Andi
Aug 20 2010
parent Walter Bright <newshound2 digitalmars.com> writes:
Andi Jahja wrote:
 On Fri, 20 Aug 2010 11:47:46 -0700, Walter Bright
 <newshound2 digitalmars.com> wrote:
 
 Andi Jahja wrote:
 Will this very bad bug be fixed?

http://bugzilla.digitalmars.com/issues/show_bug.cgi?id=79

Thanks, but this made DMC be trashed for serious application until the bug fixed.

I understand, and I appreciate you taking the time to submit a bug report.
Aug 20 2010