https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125116
--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- (In reply to David Malcolm from comment #1) > Thanks for filing this bug report, and sorry for the noise. > > For reference, here's the example on Compiler Explorer: > https://godbolt.org/z/xqszz5K6P > > We added -Wanalyzer-allocation-size in GCC 13: > > https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff; > h=e6c3bb379f515b27268d08e62b4b3e5d7200b437 > and I notice that earlier releases of GCC do also warn for your small > example. I wonder if this warning wasn't showing up on Emacs with earlier > releases of GCC, By "earlier" here, I mean earlier than GCC 16, i.e. GCC 13 - 15. Sorry for the unclear writing.
