[Bug c++/19712] Can not use pow (as a function), must say std::pow explicitly.
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 30 13:53:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-30 13:53 -------
You declared a local variable (parameter) which shadows pow so this is invalid.
try the following:
double func(double num, double pow1)
{
return(pow(num, pow1));
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19712
More information about the Gcc-bugs
mailing list