This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216 and 67674
- From: Dominique d'HumiÃres <dominiq at lps dot ens dot fr>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, Damian Rouson <damian at sourceryinstitute dot org>, Louis Krupp <louis dot krupp at zoho dot com>
- Date: Thu, 12 Nov 2015 19:56:35 +0100
- Subject: Re: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216 and 67674
- Authentication-results: sourceware.org; auth=none
- References: <CAGkQGiKxMzETAXeSOSqOdC8c6EonMsSptu8ZjtW94uNQg0=YcQ at mail dot gmail dot com> <20151109144654 dot GA44618 at troutmask dot apl dot washington dot edu> <CAGkQGi+qLYA8kBuYpjxORiGHzmf7xQu5qVk0CDb_Hri-z3r6vw at mail dot gmail dot com> <7D748E43-39F5-49DC-BD80-C2A1301165EE at lps dot ens dot fr> <CAGkQGiJ007LBBt64warOSLkJ+LGm9CDsJCm9tNEwxXuiH=YXUA at mail dot gmail dot com>
Paul,
Quick test: your attached tests works with a manual checking. However if I do the following changes in deferred_character_4.f90
--- /opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_4.f90 2015-11-12 19:49:04.000000000 +0100
+++ deferred_character_4_db.f90 2015-11-12 19:52:08.000000000 +0100
@@ -18,9 +18,11 @@ program chk_alloc_string
if (size(strings, 1) .ne. 4) call abort
if (any (strings .ne. [character(len=4) :: "A", "C", "ABCD", "V"])) call abort
- strings = [character(len=4) :: "A", "C", "ABCDE", "V", "zzzz"]
+! strings = [character(len=4) :: "A", "C", "ABCDE", "V", "zzzz"]
+ strings = [character(len=4) :: "A", "C", "ABCDE", "V"]
if (len(strings) .ne. 4) call abort
if (size(strings, 1) .ne. 5) call abort
- if (any (strings .ne. [character(len=4) :: "A", "C", "ABCD", "V", "zzzz"])) call abort
+! if (any (strings .ne. [character(len=4) :: "A", "C", "ABCD", "V", "zzzz"])) call abort
+ if (any (strings .ne. [character(len=4) :: "A", "C", "ABCD", "V"])) call abort
end program chk_alloc_string
the program aborts.
Dominique
> Le 12 nov. 2015 Ã 14:14, Paul Richard Thomas <paul.richard.thomas@gmail.com> a Ãcrit :
>
> Hi Dominique,
>
> Are you sure about pr50221 #4? It runs fine for me.
>
> I have attached the testcases for PRs 50221#4, 63932, and 66408. I
> propose to add these to the commit, once I get approval.....
>
> I have a further patch for pr49954, which nearly fixes the testcase in
> the PR but is not quite there. However, concatenation is in general
> fixed, when there is no dependency. When there is, the lhs string
> lengt gets updated before the concatenation, thereby shifting the op2
> part of the concatenation. It'll be another few days....
>
> Cheers
>
> Paul
- References:
- [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216 and 67674
- From: Paul Richard Thomas
- Re: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216 and 67674
- Re: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216 and 67674
- From: Paul Richard Thomas
- Re: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216 and 67674
- From: Dominique d'HumiÃres
- Re: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216 and 67674
- From: Paul Richard Thomas