https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71914
--- Comment #3 from henad221 at student dot liu.se --- Thanks for quick reply. I didn't expect the name DOMAIN to be used by something when including math.h. Thanks to Jakub for an explanation of what is happening, next time I will try to dig more into these kinds of issues before posting it as a bug.