[Bug fortran/63469] Automatic reallocation of allocatable scalar length even when substring implicitly specified

2017-07-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63469

Thomas Koenig  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||tkoenig at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #6 from Thomas Koenig  ---
This works now, closing.

[Bug fortran/63469] Automatic reallocation of allocatable scalar length even when substring implicitly specified

2016-04-09 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63469

--- Comment #5 from Dominique d'Humieres  ---
The test in comment 4 works with trunk (6.0), but not with 5.3.1.

[Bug fortran/63469] Automatic reallocation of allocatable scalar length even when substring implicitly specified

2015-12-10 Thread zmi007 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63469

zmi  changed:

   What|Removed |Added

 CC||zmi007 at gmail dot com

--- Comment #4 from zmi  ---
I found this simple snippet in comp.lang.fortran newsgroup thread "Problem with
automatic reallocation of allocatable scalar on assignment" and it fails now
after some modification with the last version of gfortran I have

GNU Fortran (SUSE Linux) 5.3.1 20151207 [gcc-5-branch revision 231355]

program test
implicit none
 character(len=:), allocatable :: temp
 integer :: i
 do i = 1,1
 temp='abcdef'
 temp=temp(3:)
 write(*,'("|",A,"|")') temp
 deallocate(temp)
 enddo
end program test

./test.x
|cd  |

Note that if we remove dummy "do i= ... end do" we obtain expected substring
./test.x
|cdef|

[Bug fortran/63469] Automatic reallocation of allocatable scalar length even when substring implicitly specified

2015-10-26 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63469

--- Comment #3 from Paul Thomas  ---
This is now fixed on trunk and 5 branch by the patch for PR67177 and 67977. I
will see later on if they apply cleanly to 4.9 branch. If so, I will commit.

Paul


[Bug fortran/63469] Automatic reallocation of allocatable scalar length even when substring implicitly specified

2015-10-19 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63469

Paul Thomas  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |pault at gcc dot gnu.org

--- Comment #2 from Paul Thomas  ---
Dear David,

As you have pointed out, this is identical to PR 67977. This is now fixed on
trunk and will be fixed on 5 branch next weekend.

Thanks for the report

Paul


[Bug fortran/63469] Automatic reallocation of allocatable scalar length even when substring implicitly specified

2014-11-30 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63469

Dominique d'Humieres dominiq at lps dot ens.fr changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-11-30
 CC||pault at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres dominiq at lps dot ens.fr ---
Still present at r218188. Compiling the test with -fno-realloc-lhs gives

 Length of string   with substring =   32
 Length of string   with substring =   32
 Length of string   without substring =   32

With revision 4.5.4 I get the error

CHARACTER(:), ALLOCATABLE :: s
  1
Error: Syntax error in CHARACTER declaration at (1)