https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90286
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- On Fedora the Arduino IDE uses GCC 7.4, so it's possible to build a newer one. Whoever you got your Arduino toolchain from needs to update it and provide you a newer one. That's not the responsibility of the GCC project, so we can't help you here.