[Bug c++/37582] [4.3 Regression] std::pow strange overload resolution

2008-12-11 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2008-12-11 17:25 --- That looks very invasive for the branch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37582

[Bug c++/37582] [4.3 Regression] std::pow strange overload resolution

2008-12-11 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2008-12-11 17:20 --- It is fixed by revision 133519: http://gcc.gnu.org/ml/gcc-cvs/2008-03/msg00738.html http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01285.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37582

[Bug c++/37582] [4.3 Regression] std::pow strange overload resolution

2008-12-11 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-12-11 11:45 --- Janis, can we have your regression hunting services to look what fixed this on the mainline? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/37582] [4.3 Regression] std::pow strange overload resolution

2008-10-22 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2008-10-22 21:22 --- Couldn't cmath just use: template inline typename __gnu_cxx::__promote_2< -typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value -&& __is_arithmetic<_Up>::__value, +typename __gnu_c

[Bug c++/37582] [4.3 Regression] std::pow strange overload resolution

2008-09-22 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-09-22 19:55 --- Is && part of GNU C++98 now? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/37582] [4.3 Regression] std::pow strange overload resolution

2008-09-19 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-09-19 09:34 --- Shorter testcase: #include class super_real { public: super_real (double); }; bool operator&& (int i, const super_real& a); double square(double a) { return std::pow(a,2.0); } -- rguenth at gcc dot g