http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46408

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.10 13:05:00
     Ever Confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org 2010-11-10 13:05:00 UTC ---
(In reply to comment #0)
> This might be a known problem, but the test case
>   gfortran.dg/class_allocate_6.f03
> fails for me.

I was not aware of this problem up to now. The test case does not fail for me,
but I can reproduce the valgrind error.


> To be precise, I get a segfault using when executing the line:
>   allocate(y, source=x)

The error goes away when removing the SOURCE tag or making x TYPE(t), but not
when making x TYPE(t2).


> Valgrind shows:
>  Conditional jump or move depends on uninitialised value(s)
>     at 0x400C37: __copy_MAIN___t2.1547 (class_allocate_6.f03:7)
>     by 0x400ED4: MAIN__ (class_allocate_6.f03:48)
>     by 0x400FD7: main (class_allocate_6.f03:48)

Apparently this happens inside the copying routine, but I'm not quite sure
where exactly the problem is.

Reply via email to