https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86277
--- Comment #21 from Mikael Morin <mikael at gcc dot gnu.org> --- (In reply to anlauf from comment #20) > > This patch fails for me on several occasions including the testsuite. > I guess the logic was intended as follows: > Well, not really, it seems wasteful to use the heap for something known to be useless anyway. But I agree that your variant is probably safer.