* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
@ 2020-12-31 18:53 ` dominiq at lps dot ens.fr
2020-12-31 19:11 ` ffadrique at gmail dot com
` (17 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-12-31 18:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
Last reconfirmed| |2020-12-31
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
WORKSFORME fron 7 up to 11. Which revision are you using?
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
2020-12-31 18:53 ` [Bug fortran/98490] " dominiq at lps dot ens.fr
@ 2020-12-31 19:11 ` ffadrique at gmail dot com
2020-12-31 19:48 ` kargl at gcc dot gnu.org
` (16 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: ffadrique at gmail dot com @ 2020-12-31 19:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #2 from Fran Martinez Fadrique <ffadrique at gmail dot com> ---
I am not sure to understand the question
The gfortran version is
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
It also appear with
gcc version 11.0.0 20201220 (experimental) (GCC)
also in Ubuntu
In case it was not clear in my initial statement, it only appears when the flag
-fbound-check is used. Otherwise the behaviour seems fine.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
2020-12-31 18:53 ` [Bug fortran/98490] " dominiq at lps dot ens.fr
2020-12-31 19:11 ` ffadrique at gmail dot com
@ 2020-12-31 19:48 ` kargl at gcc dot gnu.org
2020-12-31 19:49 ` kargl at gcc dot gnu.org
` (15 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: kargl at gcc dot gnu.org @ 2020-12-31 19:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #3 from kargl at gcc dot gnu.org ---
Index: gcc/fortran/trans-expr.c
===================================================================
--- gcc/fortran/trans-expr.c (revision 1050250)
+++ gcc/fortran/trans-expr.c (working copy)
@@ -2374,7 +2374,8 @@ gfc_conv_substring (gfc_se * se, gfc_ref * ref, int ki
if (!CONSTANT_CLASS_P (tmp) && !DECL_P (tmp))
end.expr = gfc_evaluate_now (end.expr, &se->pre);
- if (gfc_option.rtcheck & GFC_RTCHECK_BOUNDS)
+ if ((gfc_option.rtcheck & GFC_RTCHECK_BOUNDS)
+ && !ref->u.ss.start->symtree->n.sym->attr.implied_index)
{
tree nonempty = fold_build2_loc (input_location, LE_EXPR,
logical_type_node, start.expr,
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (2 preceding siblings ...)
2020-12-31 19:48 ` kargl at gcc dot gnu.org
@ 2020-12-31 19:49 ` kargl at gcc dot gnu.org
2021-01-02 4:08 ` jvdelisle at charter dot net
` (14 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: kargl at gcc dot gnu.org @ 2020-12-31 19:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Status|WAITING |NEW
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (3 preceding siblings ...)
2020-12-31 19:49 ` kargl at gcc dot gnu.org
@ 2021-01-02 4:08 ` jvdelisle at charter dot net
2021-01-02 4:12 ` jvdelisle at charter dot net
` (13 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at charter dot net @ 2021-01-02 4:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
Jerry DeLisle <jvdelisle at charter dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at charter dot net
--- Comment #4 from Jerry DeLisle <jvdelisle at charter dot net> ---
With gfortran version 11.0.0 20201227
$ gfc -fbounds-check pr98490.f90
$
$ ./a.out
At line 15 of file pr98490.f90
Fortran runtime error: Substring out of bounds: lower bound (0) of 'text' is
less than one
After Steves patch:
$ gfc -fbounds-check pr98490.f90
$ ./a.out
Lorem ipsum
Steve would you like me to commit for you? Regression testing now.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (4 preceding siblings ...)
2021-01-02 4:08 ` jvdelisle at charter dot net
@ 2021-01-02 4:12 ` jvdelisle at charter dot net
2021-01-02 4:24 ` sgk at troutmask dot apl.washington.edu
` (12 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at charter dot net @ 2021-01-02 4:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #5 from Jerry DeLisle <jvdelisle at charter dot net> ---
Patch regresses several test cases.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (5 preceding siblings ...)
2021-01-02 4:12 ` jvdelisle at charter dot net
@ 2021-01-02 4:24 ` sgk at troutmask dot apl.washington.edu
2021-01-02 21:03 ` sgk at troutmask dot apl.washington.edu
` (11 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: sgk at troutmask dot apl.washington.edu @ 2021-01-02 4:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Sat, Jan 02, 2021 at 04:12:27AM +0000, jvdelisle at charter dot net wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
>
> --- Comment #5 from Jerry DeLisle <jvdelisle at charter dot net> ---
> Patch regresses several test cases.
>
I haven't regression tested the patch, but at least
for the testcase in this PR the patch is correct.
You can verify this by looking at -fdump-tree-original
with and without the patch. The variable 'i' is never
set and never used (unless you use -fcheck=all).
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (6 preceding siblings ...)
2021-01-02 4:24 ` sgk at troutmask dot apl.washington.edu
@ 2021-01-02 21:03 ` sgk at troutmask dot apl.washington.edu
2021-01-25 13:40 ` pault at gcc dot gnu.org
` (10 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: sgk at troutmask dot apl.washington.edu @ 2021-01-02 21:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #7 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Sat, Jan 02, 2021 at 04:12:27AM +0000, jvdelisle at charter dot net wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
>
> --- Comment #5 from Jerry DeLisle <jvdelisle at charter dot net> ---
> Patch regresses several test cases.
>
This regresses okay.
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index 14361a10f68..b860f7eaa26 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -2537,7 +2537,9 @@ gfc_conv_substring (gfc_se * se, gfc_ref * ref, int kind,
if (!CONSTANT_CLASS_P (tmp) && !DECL_P (tmp))
end.expr = gfc_evaluate_now (end.expr, &se->pre);
- if (gfc_option.rtcheck & GFC_RTCHECK_BOUNDS)
+ if ((gfc_option.rtcheck & GFC_RTCHECK_BOUNDS)
+ && (ref->u.ss.start->symtree
+ && !ref->u.ss.start->symtree->n.sym->attr.implied_index))
{
tree nonempty = fold_build2_loc (input_location, LE_EXPR,
My test program without the dejagnu stuff.
program test
implicit none
call sub('Lorem ipsum')
contains
subroutine sub( text )
character(len=*), intent(in) :: text
character(len=1), allocatable ::c(:)
integer :: i
c = [ ( text(i:i), i = 1, len(text) ) ]
if (c(1) /= 'L') stop 1
end subroutine sub
end program test
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (7 preceding siblings ...)
2021-01-02 21:03 ` sgk at troutmask dot apl.washington.edu
@ 2021-01-25 13:40 ` pault at gcc dot gnu.org
2021-09-08 20:36 ` anlauf at gcc dot gnu.org
` (9 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: pault at gcc dot gnu.org @ 2021-01-25 13:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pault at gcc dot gnu.org
--- Comment #8 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #7)
> On Sat, Jan 02, 2021 at 04:12:27AM +0000, jvdelisle at charter dot net wrote:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
> >
> > --- Comment #5 from Jerry DeLisle <jvdelisle at charter dot net> ---
> > Patch regresses several test cases.
> >
>
> This regresses okay.
>
> diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
> index 14361a10f68..b860f7eaa26 100644
> --- a/gcc/fortran/trans-expr.c
> +++ b/gcc/fortran/trans-expr.c
> @@ -2537,7 +2537,9 @@ gfc_conv_substring (gfc_se * se, gfc_ref * ref, int
> kind,
> if (!CONSTANT_CLASS_P (tmp) && !DECL_P (tmp))
> end.expr = gfc_evaluate_now (end.expr, &se->pre);
>
> - if (gfc_option.rtcheck & GFC_RTCHECK_BOUNDS)
> + if ((gfc_option.rtcheck & GFC_RTCHECK_BOUNDS)
> + && (ref->u.ss.start->symtree
> + && !ref->u.ss.start->symtree->n.sym->attr.implied_index))
> {
> tree nonempty = fold_build2_loc (input_location, LE_EXPR,
>
> My test program without the dejagnu stuff.
>
> program test
>
> implicit none
>
> call sub('Lorem ipsum')
>
> contains
>
> subroutine sub( text )
> character(len=*), intent(in) :: text
> character(len=1), allocatable ::c(:)
> integer :: i
> c = [ ( text(i:i), i = 1, len(text) ) ]
> if (c(1) /= 'L') stop 1
> end subroutine sub
>
> end program test
Hi Steve and Jerry,
This is OK to commit to master. I would suggest cherry-picking to 9- and
10-branches too.
Cheers
Paul
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (8 preceding siblings ...)
2021-01-25 13:40 ` pault at gcc dot gnu.org
@ 2021-09-08 20:36 ` anlauf at gcc dot gnu.org
2021-09-08 20:43 ` kargl at gcc dot gnu.org
` (8 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-09-08 20:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #9 from anlauf at gcc dot gnu.org ---
(In reply to Steve Kargl from comment #7)
> This regresses okay.
Still does. Shall I submit it for review, commit for you, or let it bit-rot?
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (9 preceding siblings ...)
2021-09-08 20:36 ` anlauf at gcc dot gnu.org
@ 2021-09-08 20:43 ` kargl at gcc dot gnu.org
2021-09-09 19:34 ` cvs-commit at gcc dot gnu.org
` (7 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: kargl at gcc dot gnu.org @ 2021-09-08 20:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #10 from kargl at gcc dot gnu.org ---
(In reply to anlauf from comment #9)
> (In reply to Steve Kargl from comment #7)
> > This regresses okay.
>
> Still does. Shall I submit it for review, commit for you, or let it bit-rot?
If you agree with the patch, I think you can commit it without review.
Two sets of eyes (yours and mine) have looked over the patch. You'll
still need to submit emails. Just use the "committed as obvious" or
"committed after discussion with Steve" excuse.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (10 preceding siblings ...)
2021-09-08 20:43 ` kargl at gcc dot gnu.org
@ 2021-09-09 19:34 ` cvs-commit at gcc dot gnu.org
2021-09-09 19:40 ` anlauf at gcc dot gnu.org
` (6 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-09 19:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:5fe0865ab788bdc387b284a3ad57e5a95a767b18
commit r12-3432-g5fe0865ab788bdc387b284a3ad57e5a95a767b18
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Sep 9 21:34:01 2021 +0200
Fortran - out of bounds in array constructor with implied do loop
gcc/fortran/ChangeLog:
PR fortran/98490
* trans-expr.c (gfc_conv_substring): Do not generate substring
bounds check for implied do loop index variable before it actually
becomes defined.
gcc/testsuite/ChangeLog:
PR fortran/98490
* gfortran.dg/bounds_check_23.f90: New test.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (11 preceding siblings ...)
2021-09-09 19:34 ` cvs-commit at gcc dot gnu.org
@ 2021-09-09 19:40 ` anlauf at gcc dot gnu.org
2021-09-11 19:03 ` cvs-commit at gcc dot gnu.org
` (5 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-09-09 19:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu.org
Status|NEW |ASSIGNED
Keywords| |wrong-code
--- Comment #12 from anlauf at gcc dot gnu.org ---
Here's the mail to the ML:
https://gcc.gnu.org/pipermail/fortran/2021-September/056494.html
Unless there is fallout, I'll see if this can be backported to open branches.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (12 preceding siblings ...)
2021-09-09 19:40 ` anlauf at gcc dot gnu.org
@ 2021-09-11 19:03 ` cvs-commit at gcc dot gnu.org
2021-09-16 18:30 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-11 19:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:7ca5bcb0f12380a399c6f88f82fa01b530eb85e5
commit r11-8980-g7ca5bcb0f12380a399c6f88f82fa01b530eb85e5
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Sep 9 21:34:01 2021 +0200
Fortran - out of bounds in array constructor with implied do loop
gcc/fortran/ChangeLog:
PR fortran/98490
* trans-expr.c (gfc_conv_substring): Do not generate substring
bounds check for implied do loop index variable before it actually
becomes defined.
gcc/testsuite/ChangeLog:
PR fortran/98490
* gfortran.dg/bounds_check_23.f90: New test.
(cherry picked from commit 5fe0865ab788bdc387b284a3ad57e5a95a767b18)
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (13 preceding siblings ...)
2021-09-11 19:03 ` cvs-commit at gcc dot gnu.org
@ 2021-09-16 18:30 ` cvs-commit at gcc dot gnu.org
2021-09-30 19:12 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-16 18:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:c38626f7a66dea400e54f671bfe32dc46e11ad44
commit r10-10131-gc38626f7a66dea400e54f671bfe32dc46e11ad44
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Sep 9 21:34:01 2021 +0200
Fortran - out of bounds in array constructor with implied do loop
gcc/fortran/ChangeLog:
PR fortran/98490
* trans-expr.c (gfc_conv_substring): Do not generate substring
bounds check for implied do loop index variable before it actually
becomes defined.
gcc/testsuite/ChangeLog:
PR fortran/98490
* gfortran.dg/bounds_check_23.f90: New test.
(cherry picked from commit 5fe0865ab788bdc387b284a3ad57e5a95a767b18)
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (14 preceding siblings ...)
2021-09-16 18:30 ` cvs-commit at gcc dot gnu.org
@ 2021-09-30 19:12 ` cvs-commit at gcc dot gnu.org
2021-09-30 19:13 ` anlauf at gcc dot gnu.org
` (2 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-30 19:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:97a5a41dbfef1722fdaf4dc979e8b9c274b4404d
commit r9-9750-g97a5a41dbfef1722fdaf4dc979e8b9c274b4404d
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Sep 9 21:34:01 2021 +0200
Fortran - out of bounds in array constructor with implied do loop
gcc/fortran/ChangeLog:
PR fortran/98490
* trans-expr.c (gfc_conv_substring): Do not generate substring
bounds check for implied do loop index variable before it actually
becomes defined.
gcc/testsuite/ChangeLog:
PR fortran/98490
* gfortran.dg/bounds_check_23.f90: New test.
(cherry picked from commit 5fe0865ab788bdc387b284a3ad57e5a95a767b18)
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (15 preceding siblings ...)
2021-09-30 19:12 ` cvs-commit at gcc dot gnu.org
@ 2021-09-30 19:13 ` anlauf at gcc dot gnu.org
2021-11-02 18:33 ` anlauf at gcc dot gnu.org
2022-03-18 19:48 ` anlauf at gcc dot gnu.org
18 siblings, 0 replies; 20+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-09-30 19:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |9.5
--- Comment #16 from anlauf at gcc dot gnu.org ---
Fixed on all open branches. Closing.
Thanks for the report!
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (16 preceding siblings ...)
2021-09-30 19:13 ` anlauf at gcc dot gnu.org
@ 2021-11-02 18:33 ` anlauf at gcc dot gnu.org
2022-03-18 19:48 ` anlauf at gcc dot gnu.org
18 siblings, 0 replies; 20+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-11-02 18:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |krefson at gmail dot com
--- Comment #17 from anlauf at gcc dot gnu.org ---
*** Bug 103045 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop
2020-12-31 18:42 [Bug fortran/98490] New: Unexpected out of bounds in array constructor with implied do loop ffadrique at gmail dot com
` (17 preceding siblings ...)
2021-11-02 18:33 ` anlauf at gcc dot gnu.org
@ 2022-03-18 19:48 ` anlauf at gcc dot gnu.org
18 siblings, 0 replies; 20+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-03-18 19:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |physiker at toast2 dot net
--- Comment #18 from anlauf at gcc dot gnu.org ---
*** Bug 70994 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 20+ messages in thread