[Bug bootstrap/95970] gcc/go/gofrontend/types.cc:1474:34: warning: ‘this’ pointer null

ian at airs dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 29 17:38:50 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95970

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
I'm having a hard time parsing the warning.  It says

gcc/go/gofrontend/types.cc:1474:34: warning: ‘this’ pointer null [-Wnonnull]

The line is

  return type->do_type_descriptor(gogo, NULL);

Is this trying to say that "type" may be NULL?

That's true, it can be.  This does look like a bug.  There must be some reason
that this code is never executed.


More information about the Gcc-bugs mailing list