On Tuesday 26 April 2016 21:22:24 Lisandro Damián Nicanor Pérez Meyer wrote: [snip] > 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> Interestingly enough if I change all the <cmath> includes with <math.h> everything compiles as expected. So I'm really suspecting a gcc bug here. -- <rata> hmm, el enchufe hace chispas... <-- rata ha dejado este servidor ("Leaving"). <marga> ouch Visto en #lugfi, irc.freenode.net 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.