https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65144
Bug 65144 depends on bug 65141, which changed state.
Bug 65141 Summary: ISO_10646 constant parameters convert kind when used with
substring references
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65141
What|Removed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67972
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||zbeekman at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88488
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102787
--- Comment #7 from anlauf at gcc dot gnu.org ---
Slightly improved version of the patch of comment#6:
diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c
index 6552eaf3b0c..a63a6631f59 100644
--- a/gcc/fortran/array.c
+++ b/gcc/fortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102787
--- Comment #6 from anlauf at gcc dot gnu.org ---
WIP patch that fixes comment#5 as like comment#0 and regtests cleanly:
diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c
index 6552eaf3b0c..e1ab2e06fdb 100644
--- a/gcc/fortran/array.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102787
--- Comment #2 from anlauf at gcc dot gnu.org ---
The wrong locus for comment#1 is fixed by:
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
index cfaf9d26bbc..bfb371b82c9 100644
--- a/gcc/fortran/check.c
+++ b/gcc/fortran/check.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102685
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102787
--- Comment #1 from anlauf at gcc dot gnu.org ---
Interesting. Cannot reproduce on x86_64-pc-linux-gnu.
However, changing the testcase as follows:
program p
integer, parameter :: a(1) = 2
! integer, parameter :: b(2) = reshape([3,4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65454
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed|2021-09-12 00:00:00 |2021-10-8
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102787
--- Comment #5 from anlauf at gcc dot gnu.org ---
Looks like an issue with simplification of array within array constructor:
print *, - a
print *, - [a]
print *, - [[a]]
end
-fdump-fortran-original produces:
code:
WRITE UNIT=6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102717
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102717
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Priority|P3 |P4
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102716
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102510
--- Comment #3 from anlauf at gcc dot gnu.org ---
It helps to look at the (Fortran) context. As written, the subroutine version
is declared with explicit size contiguous arrays. If the caller has a
non-contiguous (strided) result array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102521
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-09-28
Ever
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102520
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-09-28
Ever
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102520
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Target Milestone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102510
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102521
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
--- Comment #13 from anlauf at gcc dot gnu.org ---
Corrected patch that addresses the remaining issue (for valid code):
https://gcc.gnu.org/pipermail/fortran/2021-September/056599.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102520
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82314
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Target Milestone|--- |9.5
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101327
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Resolution|--- |FIXED
Target Milestone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
--- Comment #4 from anlauf at gcc dot gnu.org ---
(In reply to kargl from comment #3)
> Well, it is a pure function. Fortran 2018, page 327,
>
> All standard intrinsic functions are pure.
Of course you are correct. I wanted t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
--- Comment #6 from anlauf at gcc dot gnu.org ---
Created attachment 51497
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51497=edit
Patch
Thanks for the research, Steve.
The attached patch fixes the PR by excluding the listed functions.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Attachment #51497|0 |1
is obsolete
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99348
--- Comment #4 from anlauf at gcc dot gnu.org ---
This might actually be related to pr102521. The following variant compiles ok:
program p
type t
character(3) :: c
end type
! type(t), parameter :: x(1) = t('abc')
type(t), parameter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100954
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102521
--- Comment #4 from anlauf at gcc dot gnu.org ---
Tentative patch:
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index b3c65b7175b..cebc59e4ab5 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -2228,12 +2228,15
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102521
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56688
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC|anlauf at gmx dot de |anlauf at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102521
--- Comment #3 from anlauf at gcc dot gnu.org ---
The code works if we replace the r.h.s. in the initialization by an array:
program p
type t
integer :: n
end type
! type(t), parameter :: a(4) = t(1)! ICE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102599
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Keywords||ice-on-valid-code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102620
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
CC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Target Milestone|--- |10.4
Status
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102582
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Resolution|--- |INVALID
Status
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102595
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: anlauf at gcc dot gnu.org
Target Milestone: ---
Consider:
program p
implicit none
complex, parameter :: x(2) = 1
real,parameter :: r(*) = x%re
real,parameter :: i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
--- Comment #12 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #9)
A tentative patch which fixes the remaining issue is posted here:
https://gcc.gnu.org/pipermail/fortran/2021-September/056584.html
in the hope to learn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102113
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101349
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102685
--- Comment #8 from anlauf at gcc dot gnu.org ---
*** Bug 100970 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100970
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|WAITING |RESOLVED
CC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102917
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Ever confirmed|0 |1
CC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102917
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: anlauf at gcc dot gnu.org
Target Milestone: ---
Reported by Steve:
https://gcc.gnu.org/pipermail/fortran/2021-October/056771.html
We reject valid code.
F2003 has
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102685
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||gerhard.steinmetz.fortran@t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102900
--- Comment #4 from anlauf at gcc dot gnu.org ---
The ICE is resolved by Jose's patch to PR100136, which was just accepted.
It would also need to get backported to 11-branch.
However, a runtime error will remain:
At line 91 of file gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103473
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101565
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103473
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-11-29
Ever
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Keywords||wrong-code
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103505
--- Comment #11 from anlauf at gcc dot gnu.org ---
(In reply to Steve Kargl from comment #10)
> On Thu, Dec 02, 2021 at 09:51:23PM +0000, anlauf at gcc dot gnu.org wrote:
> >
> > Submitted as:
> > https://gcc.gnu.org/p
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103588
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-12-06
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103591
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Ever confirmed|0 |1
Status
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103588
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101632
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-12-06
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103588
--- Comment #2 from anlauf at gcc dot gnu.org ---
Untested patch:
diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c
index 5762c8d92d4..5f9ed17f919 100644
--- a/gcc/fortran/array.c
+++ b/gcc/fortran/array.c
@@ -2403,11 +2403,9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103591
--- Comment #2 from anlauf at gcc dot gnu.org ---
Untested fix:
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index 2bf21434a42..52bc5af7542 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -6075,6 +6075,15
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103591
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103589
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-12-06
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283
--- Comment #5 from anlauf at gcc dot gnu.org ---
I did get some progress with the attempt:
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 87089321a3b..d5bbcd493b6 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -1929,6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103473
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Resolution|--- |FIXED
Status
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103757
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Keywords
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103588
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Target Milestone|--- |9.5
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103412
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103505
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Known to work||12.0
Summary|ICE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103260
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103260
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103610
--- Comment #8 from anlauf at gcc dot gnu.org ---
*** Bug 103260 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103610
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103412
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103418
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Resolution|--- |FIXED
Status
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103634
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102332
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103778
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Resolution|--- |FIXED
Status
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102332
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103776
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Resolution|--- |FIXED
Status
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101762
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77667
--- Comment #4 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #3)
> The following patch seems to work:
... and regtests ok.
It is not really pretty, though, and does not help with apparently related PRs,
such as PR50410.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77667
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103914
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Severity|normal |enhancement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103794
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-12-21
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103789
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78054
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103898
--- Comment #5 from anlauf at gcc dot gnu.org ---
Started most likely with commit r12-3897 by Tobias.
Interestingly, the ICE occurs only for a rank-1 array, but not for rank-2 or
for assumed-rank.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101762
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101762
--- Comment #4 from anlauf at gcc dot gnu.org ---
Created attachment 52108
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52108=edit
Improved patch
The previous patch was too strict. The attached version does a much better
job, but ne
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103776
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
CC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103778
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Last reconfirmed||2021-12-20
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103412
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103776
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103778
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103777
--- Comment #3 from anlauf at gcc dot gnu.org ---
Minimal fix (for maskl):
diff --git a/gcc/fortran/simplify.c b/gcc/fortran/simplify.c
index 90067b6bbe6..45080e8b912 100644
--- a/gcc/fortran/simplify.c
+++ b/gcc/fortran/simplify.c
@@ -4909,6
901 - 1000 of 2572 matches
Mail list logo