https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96739
--- Comment #3 from Dr. David Alan Gilbert <dgilbert at redhat dot com> --- Hi Martin, Thanks for the response. I've added a slightly less boiled down test that I think is still valid. I agree with that you say in the case of the call from help_all->help_oneline because cmd and ct are related; however int he original, and new attachment, there's another independent call to help_oneline via help_onecmd->help_oneline where the cmd is argv[1]. So while it's true, that as you say, in the help_all->help_oneline case, if the cmd is NULL then so is ct->name, this is only true for one caller of help_oneline.