https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119435
--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > (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? yes, of course, those do work on Darwin and have for ages .. I was obv. not thinking..