
5 Aug
2008
5 Aug
'08
3:47 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 05 August 2008 11:26 am, John Maddock wrote:
$ g++ -I. -Wall -Wshadow -c t.cpp 2>&1 | less
t.cpp: In function `void f(T)': t.cpp:6: warning: shadowing built-in function `double std::acos(double)' t.cpp: In function `void f(T) [with T = double]': t.cpp:12: instantiated from here t.cpp:6: warning: shadowing built-in function `double std::acos(double)' t.cpp:12: instantiated from here
I don't get any warnings with g++ 4.1.2. What version of gcc are you using? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFImHYQ5vihyNWuA4URAntzAJ4jumKo5rIhyQ54JTBeOj5vOTeJgwCgzFPY NfRdZi4JRE6U1VhiBBo+upM= =Ua27 -----END PGP SIGNATURE-----