https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119435
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Iain Sandoe from comment #1) > In the meantime, you have no solution except to make the priority attribute > conditional on !defined(__APPLE__). Didn't we make __has_attribute / __has_cpp_attribute do the right thing for Darwin now?