Control: tag -1 moreinfo

On Tuesday 26 April 2016 21:09:57 Lisandro Damián Nicanor Pérez Meyer wrote:
[snip]
> 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.

Martin: I *think* this might be a bug in gcc6.

According to [0]:

  Header <math.h> changes

  The C++ library now provides its own <math.h> header that wraps the C
  library header of the same name. The C++ header defines additional overloads
  of some functions and ensures that all standard functions are defined as
  real functions and not as macros. Code which assumes that sin, cos, pow,
  isfinite etc. are macros may no longer compile.

Now the code in question is including <cmath>. Would it be possible that cmath 
might need some adjustment? Is the only way I see this can happen at all.

[0] <https://gcc.gnu.org/gcc-6/porting_to.html#math.h>

Thanks in advance, Lisandro.

-- 
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu) for 386(486) AT clones.
  Linus Benedict Torvalds.

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to