https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110070
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Roger Sayle from comment #0) > Fortunately, there's already code in the depth of the C++ front=end for > marking such initializer lists/constructors as static, Jason looked into this recently. There are problems with making it static (although in this case where the addresses of the elements don't escape maybe it would be OK).