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

--- Comment #7 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Paul Thomas from comment #6)
> (In reply to Tom de Vries from comment #5)
> > Hmm. Probably this failure would have been picked up by
> > libgomp-plugin-host_nonshm.
> 
> Hi Tom,
> 
> Although my patch caused it, I am not in a position to pick this one up - I
> am unable to reproduce it and do not have access to the target you are
> using. In addition, libgomp and all its workings are, as far as I am
> concerned, one of the arcane mysteries of gcc.
> 
> I am perfectly happy to put in some time to help but I do not even know
> where to start.

I may have found a way to reproduce the problem without libgomp (disclaimer: I
have no idea whether this testcase if valid fortran or not).

Consider this testcase:
...
  implicit none
  integer(kind=4) z

  call foo (z)

contains
  subroutine foo (a)
    type (*), dimension (..), contiguous :: a
    print *, sizeof(a)
  end subroutine foo

end program
...

compiled like this:
...
$ gfortran -O2 test.f90
...

gives:
...
$ ./a.out 
                    8
...

Previously, the testcase printed 4 instead of 8.

Reply via email to