Control: tag -1 patch On Tuesday 26 April 2016 11:28:59 Martin Michlmayr wrote: > Package: caneda > Version: 0.2.0-1 > Severity: normal > User: debian-...@lists.debian.org > Usertags: ftbfs-gcc-6 gcc-6-overloaded-ambiguous > > This package fails to build with GCC 6. GCC 6 has not been released > yet, but will probably come out this week. [snip] > > overloaded 'abs(qreal)' is ambiguous > ^^ > > > if( abs(refPos.x()-newPos.x()) > abs(refPos.y()-newPos.y()) )
Simply changing abs() with qAbs() will do the trick. Upstream is already working on it, I'll probably push a fixed version as soon as possible. I'm afraid this will probably make a lot of code using Qt insta-RC-buggy. And I wonder why this is triggered. The above code returns qreal, which is a typedef for double on all Debian archs in Qt5 so I still don't understand why it fails. I'll try to dig more on this. -- If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas. George Bernard Shaw Lisandro Damián Nicanor Pérez Meyer http://perezmeyer.com.ar/ http://perezmeyer.blogspot.com/
signature.asc
Description: This is a digitally signed message part.