https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227
--- Comment #19 from Martin Sebor <msebor at gcc dot gnu.org> --- That's a valid concern. Issuing a warning (either at the same time as or in lieu of the folding) would be a way to detect and prevent these kinds of problems. Exposing it to enough code (like in a whole distro rebuild) would give us a pretty good idea about what the appropriate defaults ought to be.