* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
@ 2020-05-27 19:11 ` marxin at gcc dot gnu.org
2020-05-27 19:47 ` kargl at gcc dot gnu.org
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-27 19:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-05-27
CC| |marxin at gcc dot gnu.org,
| |pault at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-3803-ga5fbc2f36a291cbe.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
2020-05-27 19:11 ` [Bug fortran/95373] " marxin at gcc dot gnu.org
@ 2020-05-27 19:47 ` kargl at gcc dot gnu.org
2020-05-27 20:04 ` anlauf at gcc dot gnu.org
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: kargl at gcc dot gnu.org @ 2020-05-27 19:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Keywords|ice-on-valid-code |
CC| |kargl at gcc dot gnu.org
--- Comment #2 from kargl at gcc dot gnu.org ---
Removed keyword. It is an ICE-on-invalid with -std=f95;
code is valid for F2003 and newer.
Index: gcc/fortran/primary.c
===================================================================
--- gcc/fortran/primary.c (revision 280157)
+++ gcc/fortran/primary.c (working copy)
@@ -2242,7 +2242,12 @@ gfc_match_varspec (gfc_expr *primary, int equiv_flag,
sym = NULL;
if (sep == '%' && primary->ts.type != BT_UNKNOWN)
- intrinsic = true;
+ {
+ if (!gfc_notify_std (GFC_STD_F2003,
+ "Invalid type parameter inquiry at %C"))
+ return MATCH_ERROR;
+ intrinsic = true;
+ }
}
else
inquiry = false;
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
2020-05-27 19:11 ` [Bug fortran/95373] " marxin at gcc dot gnu.org
2020-05-27 19:47 ` kargl at gcc dot gnu.org
@ 2020-05-27 20:04 ` anlauf at gcc dot gnu.org
2020-05-27 20:30 ` sgk at troutmask dot apl.washington.edu
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-05-27 20:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #3 from anlauf at gcc dot gnu.org ---
Patch:
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
index d73898473df..67105cc9ab1 100644
--- a/gcc/fortran/primary.c
+++ b/gcc/fortran/primary.c
@@ -1998,6 +1998,28 @@ is_inquiry_ref (const char *name, gfc_ref **ref)
else
return false;
+ switch (type)
+ {
+ case INQUIRY_RE:
+ case INQUIRY_IM:
+ if (!gfc_notify_std (GFC_STD_F2008, "RE or IM part_ref at %C"))
+ return false;
+ break;
+
+ case INQUIRY_KIND:
+ if (!gfc_notify_std (GFC_STD_F2003, "KIND part_ref at %C"))
+ return false;
+ break;
+
+ case INQUIRY_LEN:
+ if (!gfc_notify_std (GFC_STD_F2003, "LEN part_ref at %C"))
+ return false;
+ break;
+
+ default:
+ gcc_unreachable ();
+ }
+
if (ref)
{
*ref = gfc_get_ref ();
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (2 preceding siblings ...)
2020-05-27 20:04 ` anlauf at gcc dot gnu.org
@ 2020-05-27 20:30 ` sgk at troutmask dot apl.washington.edu
2020-05-28 7:37 ` rguenth at gcc dot gnu.org
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: sgk at troutmask dot apl.washington.edu @ 2020-05-27 20:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, May 27, 2020 at 08:04:22PM +0000, anlauf at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
>
> --- Comment #3 from anlauf at gcc dot gnu.org ---
> Patch:
>
> diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
> index d73898473df..67105cc9ab1 100644
> --- a/gcc/fortran/primary.c
> +++ b/gcc/fortran/primary.c
> @@ -1998,6 +1998,28 @@ is_inquiry_ref (const char *name, gfc_ref **ref)
> else
> return false;
>
> + switch (type)
> + {
> + case INQUIRY_RE:
> + case INQUIRY_IM:
> + if (!gfc_notify_std (GFC_STD_F2008, "RE or IM part_ref at %C"))
> + return false;
> + break;
> +
> + case INQUIRY_KIND:
> + if (!gfc_notify_std (GFC_STD_F2003, "KIND part_ref at %C"))
> + return false;
> + break;
> +
> + case INQUIRY_LEN:
> + if (!gfc_notify_std (GFC_STD_F2003, "LEN part_ref at %C"))
> + return false;
> + break;
> +
> + default:
> + gcc_unreachable ();
> + }
> +
This is clearly better than the patch I submitted.
It it regression tests cleanly, feel free to commit
with appropriate testase(s).
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (3 preceding siblings ...)
2020-05-27 20:30 ` sgk at troutmask dot apl.washington.edu
@ 2020-05-28 7:37 ` rguenth at gcc dot gnu.org
2020-05-28 20:33 ` cvs-commit at gcc dot gnu.org
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-28 7:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |9.4
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (4 preceding siblings ...)
2020-05-28 7:37 ` rguenth at gcc dot gnu.org
@ 2020-05-28 20:33 ` cvs-commit at gcc dot gnu.org
2020-05-28 20:39 ` anlauf at gcc dot gnu.org
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-28 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #5 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:5c715e6a2990cfb6c15acc1ee14219523534ec69
commit r11-705-g5c715e6a2990cfb6c15acc1ee14219523534ec69
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu May 28 22:28:08 2020 +0200
PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
The use of KIND, LEN, RE, and IM inquiry references for applicable
intrinsic
types is valid only for suffienctly new Fortran standards. Add appropriate
check.
2020-05-28 Harald Anlauf <anlauf@gmx.de>
gcc/fortran/
PR fortran/95373
* primary.c (is_inquiry_ref): Check validity of inquiry
references against selected Fortran standard.
gcc/testsuite/
PR fortran/95373
* gfortran.dg/pr95373_1.f90: New test.
* gfortran.dg/pr95373_2.f90: New test.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (5 preceding siblings ...)
2020-05-28 20:33 ` cvs-commit at gcc dot gnu.org
@ 2020-05-28 20:39 ` anlauf at gcc dot gnu.org
2020-05-29 9:52 ` clyon at gcc dot gnu.org
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-05-28 20:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |anlauf at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu.org
--- Comment #6 from anlauf at gcc dot gnu.org ---
Taking.
Fixed on master for gcc-11.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (6 preceding siblings ...)
2020-05-28 20:39 ` anlauf at gcc dot gnu.org
@ 2020-05-29 9:52 ` clyon at gcc dot gnu.org
2020-05-29 20:51 ` anlauf at gcc dot gnu.org
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: clyon at gcc dot gnu.org @ 2020-05-29 9:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
Christophe Lyon <clyon at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clyon at gcc dot gnu.org
--- Comment #7 from Christophe Lyon <clyon at gcc dot gnu.org> ---
(In reply to CVS Commits from comment #5)
> The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
>
> https://gcc.gnu.org/g:5c715e6a2990cfb6c15acc1ee14219523534ec69
>
> commit r11-705-g5c715e6a2990cfb6c15acc1ee14219523534ec69
> Author: Harald Anlauf <anlauf@gmx.de>
> Date: Thu May 28 22:28:08 2020 +0200
>
> PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
>
> The use of KIND, LEN, RE, and IM inquiry references for applicable
> intrinsic
> types is valid only for suffienctly new Fortran standards. Add
> appropriate
> check.
>
> 2020-05-28 Harald Anlauf <anlauf@gmx.de>
>
> gcc/fortran/
> PR fortran/95373
> * primary.c (is_inquiry_ref): Check validity of inquiry
> references against selected Fortran standard.
>
> gcc/testsuite/
> PR fortran/95373
> * gfortran.dg/pr95373_1.f90: New test.
> * gfortran.dg/pr95373_2.f90: New test.
This causes regressions on arm and aarch64:
FAIL: gfortran.dg/inquiry_type_ref_2.f90 -O (test for errors, line 13)
FAIL: gfortran.dg/inquiry_type_ref_2.f90 -O (test for errors, line 14)
FAIL: gfortran.dg/inquiry_type_ref_2.f90 -O (test for errors, line 15)
FAIL: gfortran.dg/inquiry_type_ref_2.f90 -O (test for errors, line 16)
FAIL: gfortran.dg/inquiry_type_ref_2.f90 -O (test for excess errors)
Excess errors:
/gcc/testsuite/gfortran.dg/inquiry_type_ref_2.f90:13:6: Error: Unexpected '%'
for nonderived-type variable 'a' at (1)
/gcc/testsuite/gfortran.dg/inquiry_type_ref_2.f90:14:10: Error: Unexpected '%'
for nonderived-type variable 'a' at (1)
/gcc/testsuite/gfortran.dg/inquiry_type_ref_2.f90:15:15: Error: Unexpected '%'
for nonderived-type variable 'z' at (1)
/gcc/testsuite/gfortran.dg/inquiry_type_ref_2.f90:16:15: Error: Unexpected '%'
for nonderived-type variable 'z' at (1)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (7 preceding siblings ...)
2020-05-29 9:52 ` clyon at gcc dot gnu.org
@ 2020-05-29 20:51 ` anlauf at gcc dot gnu.org
2020-05-30 19:00 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-05-29 20:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #8 from anlauf at gcc dot gnu.org ---
(In reply to Christophe Lyon from comment #7)
> This causes regressions on arm and aarch64:
Followup fix to cure this:
https://gcc.gnu.org/pipermail/fortran/2020-May/054420.html
Sorry for that.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (8 preceding siblings ...)
2020-05-29 20:51 ` anlauf at gcc dot gnu.org
@ 2020-05-30 19:00 ` cvs-commit at gcc dot gnu.org
2020-05-30 19:02 ` anlauf at gcc dot gnu.org
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-30 19:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #9 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:dd38c765a04d06c775134a135f68b18c3b7c9c78
commit r11-743-gdd38c765a04d06c775134a135f68b18c3b7c9c78
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sat May 30 20:59:41 2020 +0200
PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
The use of KIND, LEN, RE, and IM inquiry references for applicable
intrinsic
types is valid only for suffienctly new Fortran standards. Add appropriate
checks in the appropriate place.
2020-05-30 Harald Anlauf <anlauf@gmx.de>
gcc/fortran/
PR fortran/95373
* primary.c (is_inquiry_ref): Move validity check of inquiry
references against selected Fortran standard from here...
(gfc_match_varspec) ...to here.
gcc/testsuite/
PR fortran/95373
* gfortran.dg/pr95373_1.f90: Adjust error messages.
* gfortran.dg/pr95373_2.f90: Adjust error message.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (9 preceding siblings ...)
2020-05-30 19:00 ` cvs-commit at gcc dot gnu.org
@ 2020-05-30 19:02 ` anlauf at gcc dot gnu.org
2020-06-05 21:03 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-05-30 19:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #10 from anlauf at gcc dot gnu.org ---
Master should be fixed now.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (10 preceding siblings ...)
2020-05-30 19:02 ` anlauf at gcc dot gnu.org
@ 2020-06-05 21:03 ` cvs-commit at gcc dot gnu.org
2020-06-05 21:03 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-05 21:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #11 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:d7760318305a0eab43d59d9884486569409c2d52
commit r10-8256-gd7760318305a0eab43d59d9884486569409c2d52
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu May 28 22:28:08 2020 +0200
PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
The use of KIND, LEN, RE, and IM inquiry references for applicable
intrinsic
types is valid only for suffienctly new Fortran standards. Add appropriate
check.
2020-05-28 Harald Anlauf <anlauf@gmx.de>
gcc/fortran/
PR fortran/95373
* primary.c (is_inquiry_ref): Check validity of inquiry
references against selected Fortran standard.
gcc/testsuite/
PR fortran/95373
* gfortran.dg/pr95373_1.f90: New test.
* gfortran.dg/pr95373_2.f90: New test.
(cherry picked from commit 5c715e6a2990cfb6c15acc1ee14219523534ec69)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (11 preceding siblings ...)
2020-06-05 21:03 ` cvs-commit at gcc dot gnu.org
@ 2020-06-05 21:03 ` cvs-commit at gcc dot gnu.org
2020-06-05 21:17 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-05 21:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #12 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:2927ec5bc1276188efae82301d8fcffe4a245d1e
commit r10-8257-g2927ec5bc1276188efae82301d8fcffe4a245d1e
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sat May 30 20:59:41 2020 +0200
PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
The use of KIND, LEN, RE, and IM inquiry references for applicable
intrinsic
types is valid only for suffienctly new Fortran standards. Add appropriate
checks in the appropriate place.
2020-05-30 Harald Anlauf <anlauf@gmx.de>
gcc/fortran/
PR fortran/95373
* primary.c (is_inquiry_ref): Move validity check of inquiry
references against selected Fortran standard from here...
(gfc_match_varspec) ...to here.
gcc/testsuite/
PR fortran/95373
* gfortran.dg/pr95373_1.f90: Adjust error messages.
* gfortran.dg/pr95373_2.f90: Adjust error message.
(cherry picked from commit dd38c765a04d06c775134a135f68b18c3b7c9c78)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (12 preceding siblings ...)
2020-06-05 21:03 ` cvs-commit at gcc dot gnu.org
@ 2020-06-05 21:17 ` cvs-commit at gcc dot gnu.org
2020-06-05 21:17 ` cvs-commit at gcc dot gnu.org
2020-06-05 21:18 ` anlauf at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-05 21:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #13 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:2039ad0eb5261a2e7eb1d3c9da7576a5c370c073
commit r9-8656-g2039ad0eb5261a2e7eb1d3c9da7576a5c370c073
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu May 28 22:28:08 2020 +0200
PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
The use of KIND, LEN, RE, and IM inquiry references for applicable
intrinsic
types is valid only for suffienctly new Fortran standards. Add appropriate
check.
2020-05-28 Harald Anlauf <anlauf@gmx.de>
gcc/fortran/
PR fortran/95373
* primary.c (is_inquiry_ref): Check validity of inquiry
references against selected Fortran standard.
gcc/testsuite/
PR fortran/95373
* gfortran.dg/pr95373_1.f90: New test.
* gfortran.dg/pr95373_2.f90: New test.
(cherry picked from commit 5c715e6a2990cfb6c15acc1ee14219523534ec69)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (13 preceding siblings ...)
2020-06-05 21:17 ` cvs-commit at gcc dot gnu.org
@ 2020-06-05 21:17 ` cvs-commit at gcc dot gnu.org
2020-06-05 21:18 ` anlauf at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-05 21:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
--- Comment #14 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:d82e9d37d843539127df59d7b8894e5e3baec9b9
commit r9-8657-gd82e9d37d843539127df59d7b8894e5e3baec9b9
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sat May 30 20:59:41 2020 +0200
PR fortran/95373 - ICE in build_reference_type, at tree.c:7942
The use of KIND, LEN, RE, and IM inquiry references for applicable
intrinsic
types is valid only for suffienctly new Fortran standards. Add appropriate
checks in the appropriate place.
2020-05-30 Harald Anlauf <anlauf@gmx.de>
gcc/fortran/
PR fortran/95373
* primary.c (is_inquiry_ref): Move validity check of inquiry
references against selected Fortran standard from here...
(gfc_match_varspec) ...to here.
gcc/testsuite/
PR fortran/95373
* gfortran.dg/pr95373_1.f90: Adjust error messages.
* gfortran.dg/pr95373_2.f90: Adjust error message.
(cherry picked from commit dd38c765a04d06c775134a135f68b18c3b7c9c78)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/95373] [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942
2020-05-27 19:01 [Bug fortran/95373] New: [9/10/11 Regression] ICE in build_reference_type, at tree.c:7942 gscfq@t-online.de
` (14 preceding siblings ...)
2020-06-05 21:17 ` cvs-commit at gcc dot gnu.org
@ 2020-06-05 21:18 ` anlauf at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-06-05 21:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95373
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #15 from anlauf at gcc dot gnu.org ---
Fixed on master for GCC-11, and backported to 10-branch and 9-branch.
Thanks for the report!
^ permalink raw reply [flat|nested] 17+ messages in thread