[Bug c++/87121] wrong 128-bit integer multiplication with mixed bit size

2018-08-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87121 --- Comment #4 from Jonathan Wakely --- declares a std::pow function template that accepts integer types: template inline _GLIBCXX_CONSTEXPR typename __gnu_cxx::__promote_2<_Tp, _Up>::__type pow(_Tp __x, _Up __y) {

[Bug c++/87121] wrong 128-bit integer multiplication with mixed bit size

2018-08-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87121 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/87121] wrong 128-bit integer multiplication with mixed bit size

2018-08-27 Thread mpreda at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87121 --- Comment #2 from Mihai Preda --- OK my bad. I don't understand exactly why the or the std:: pow() version is preferred, but this seems to be what's happening, and explains the behavior. Feel free to close this.

[Bug c++/87121] wrong 128-bit integer multiplication with mixed bit size

2018-08-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87121 Andrew Pinski changed: What|Removed |Added Component|target |c++ --- Comment #1 from Andrew Pinski