Commit 89110c5
Jerry DeLisle
Fortran: Fix wrongly rejected allocatable LOCK_TYPE [PR107406]
PR fortran/107406
gcc/fortran/ChangeLog:
* parse.cc (check_component): Adjust the error check to
require a codimension if the allocatable type has
a non-coarray LOCK_TYPE component.
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray_lock_3.f90: Remove dg-error on
valid code.
* gfortran.dg/coarray_lock_4.f90: Likewise.
* gfortran.dg/coarray_lock_5.f90: Likwise
Co-Authored by: Andre Vehreschild <vehre@gcc.gnu.org>1 parent 5cf52e4 commit 89110c5
File tree
4 files changed
+5
-8
lines changed- gcc
- fortran
- testsuite/gfortran.dg
4 files changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3691 | 3691 | | |
3692 | 3692 | | |
3693 | 3693 | | |
3694 | | - | |
3695 | | - | |
3696 | | - | |
3697 | | - | |
3698 | | - | |
| 3694 | + | |
| 3695 | + | |
3699 | 3696 | | |
3700 | 3697 | | |
3701 | 3698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments