[Bug fortran/87881] gfortran.dg/inquiry_type_ref_(1.f08|3.f90) fail on darwin

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 18 17:57:00 GMT 2018


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

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Comment on attachment 45258
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45258
A slightly more elaborate version of Jakub's patch

So, what will happen if there is more than one INQUIRY reference?  The first
iteration will set *newp to some expression and the next iteration will
overwrite (memory leak) it with something different, so the last one wins?


More information about the Gcc-bugs mailing list