This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19712] Can not use pow (as a function), must say std::pow explicitly.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2005 13:53:44 -0000
- Subject: [Bug c++/19712] Can not use pow (as a function), must say std::pow explicitly.
- References: <20050130135026.19712.larsnostdal@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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