This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17120] [3.5 regression] warning: suggest parentheses around assignment used as truth value


------- Additional Comments From pcarlini at suse dot de  2004-08-20 14:40 -------
Actually, return __x, of course:

template<typename _Tp>
  inline _Tp
  cmath_power(_Tp __x, unsigned int __n)
  {
    while (__n >>= 1)
      ;
    return __x;
  }

int main()
{
  cmath_power(1.0, 3);
}

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17120


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]