https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #23 from Martin Sebor <msebor at gcc dot gnu.org> --- With a constant argument it should be possible to issue a warning at compile time. If that's sufficient I would suggest to open a new bug requesting it. Similarly, if the sanitizers should detect it but don't please open a separate request to make that work. Link them to this one for background.