https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114409
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 57758 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57758&action=edit gcc14-pr114409.patch Ah, I have a fix for the bogus warning, ANNOTATE_EXPR really needs to wrap the whole condition rather than just part of it. But, I have no idea what to do with the templates case.