www.digitalmars.com         C & C++   DMDScript  

c++.beta - bug with sqrt

reply Steve <Steve_member pathlink.com> writes:
#include <cmath>

void test()
{
double b = 100;
double c = std::sqrt( b );
}

Compiled with version 8.38.9

Error: ambiguous reference to symbol
Had: std::_inline_sqrt(float )
and: std::_inline_sqrt(long double )

Compiled with version 3.39.1
Error: undefined identifier 'std'

Current workaround is omitting std::
Dec 11 2003
parent Steve <Steve_member pathlink.com> writes:
Oop!

The error of both version are the same
Error: ambiguous reference to symbol
Had: std::_inline_sqrt(float )
and: std::_inline_sqrt(long double )

In article <br9ca2$q8m$1 digitaldaemon.com>, Steve says...
#include <cmath>

void test()
{
double b = 100;
double c = std::sqrt( b );
}

Compiled with version 8.38.9

Error: ambiguous reference to symbol
Had: std::_inline_sqrt(float )
and: std::_inline_sqrt(long double )

Compiled with version 3.39.1
Error: undefined identifier 'std'

Current workaround is omitting std::
Dec 11 2003