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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Angus Gibson from comment #0)
> Created attachment 44132 [details]
> Segfaulting example
> 
> I've run into a bit of a heisenbug regarding the associated intrinsic
> (example attached).  On my machine, it'll reliably hit a segmentation fault
> inside the gfortran implementation of the intrinsic.  I've pared it down a
> lot from the original codebase in which it happened, but it's still a bit
> complex.  Curiously, it seems to require a print statement in query_ptr to
> trigger (this actually isn't in the original codebase, but there are a few
> external calls there that I didn't replicate).

So, what is cs%v(2)%p associated to?

    if (.not.associated(CS%v(2)%p)) then
      print *, 'in query'
    endif

    query_ptr = associated(CS%v(2)%p, f_ptr)

Reply via email to