https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67567
Bug ID: 67567
Summary: pretty-print.h sanitizer detects NULL pointer passed
to obstack_grow
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
Target Milestone: ---
While running make check-fortran on submodule_4.f08 the sanitizer complains
that in pretty-print.h:142
obstack_grow (buff->obstack, start, length);
the pointer start == NULL
Most probably length == 0
but I believe it best to fix it by prefixing the statement with "if(length)"