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

            Bug ID: 99771
           Summary: Analyzer diagnostics should not say "<unknown>"
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

Various analyzer diagnostics talk about "<unknown>"; examples can be seen in
the testsuite:
  data-model-10.c:
    *new_table->m_f = NULL; // "dereference of possibly-NULL '<unknown>'"

  malloc-1.c (test_44):
    free (global_ptr); // "leak of '<unknown>'"

  malloc-ipa-13.c:
    calls_free (f.m_p); //"passing freed pointer '<unknown>' in call to
'calls_free' from 'test'"

and IIRC I've seen these "in the wild" recently as well.

We shouldn't emit "<unknown>" to the end-user.

Filing this bug to have a place to track fixing these.

Reply via email to