https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79492
Bug ID: 79492 Summary: odd behaviour triggered on applying log function Product: gcc Version: 6.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: oivulf at gmail dot com Target Milestone: --- Created attachment 40728 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40728&action=edit compile it with -g -fcheck=all to trigger runtime error When compiling with all checks activated, real, allocatable:: a(:) real:: b(5) a=b !no complains a=log(b) !Array bound mismatch for dimension 1 of array but ... a=b; a=log(b) ! no complains