https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116847
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 59200 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59200&action=edit gcc15-pr116847-1.patch Apparently diagnostic.h already uses auto_vec in one spot. So for now here is a cleanup patch which uses vectors in two spots instead of the hand managed arrays (with the advantage of exponential reallocation rather than linear).