[Bug fortran/43969] [OOP] CLASS(foo), ALLOCATABLE component bad initialization
--- Comment #3 from janus at gcc dot gnu dot org 2010-05-15 10:25 --- (In reply to comment #1) Created an attachment (id=20542) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20542action=view) [edit] Looking at the dump of this code shows: The $data component of int is being set to zero (correctly): try.int.$data = 0B; However, the ALLOCATED statement is being evaluated to .true: static logical(kind=4) C.1566 = 1; _gfortran_transfer_logical (dt_parm.0, C.1566, 4); -- janus at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||wrong-code Last reconfirmed|-00-00 00:00:00 |2010-05-15 10:25:15 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43969
[Bug fortran/43969] [OOP] CLASS(foo), ALLOCATABLE component bad initialization
--- Comment #1 from sfilippone at uniroma2 dot it 2010-05-03 10:12 --- Created an attachment (id=20542) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20542action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43969
[Bug fortran/43969] [OOP] CLASS(foo), ALLOCATABLE component bad initialization
--- Comment #2 from sfilippone at uniroma2 dot it 2010-05-03 10:37 --- Created an attachment (id=20544) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20544action=view) Extended text case With this and a fresh build at r158988 I get the following: [sfili...@donald bug16]$ ./testd16 Check on allocated: T Check on allocated 3: T At line 18 of file testd16.f03 Fortran runtime error: Attempting to allocate already allocated array 'try2' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43969