https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Status|WAITING |RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
anlauf at gcc dot gnu.org changed:
What|Removed |Added
Keywords||ice-on-invalid-code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
--- Comment #8 from Dominique d'Humieres ---
The ICE for the test in comment 0 disappeared at r254605.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
--- Comment #7 from Dominique d'Humieres ---
The ICEs have been replaced with the error
Error: 'from' argument of 'move_alloc' intrinsic at (1) must be the same type
and kind as 'to'
between revisions r254498 and r254660, except for the test
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
--- Comment #6 from Harald Anlauf ---
Extending the check in comment #5 to
if (from->ts.type == BT_CLASS && to->ts.type != BT_CLASS ||
to->ts.type == BT_CLASS && from->ts.type != BT_CLASS)
{
gfc_error ("The FROM and TO
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
--- Comment #5 from Harald Anlauf ---
Besides the lack of diagnosing the conflicting definitions,
I think there is a missing check in gfc_check_move_alloc().
The test case
program p
class(*), allocatable :: a, b
call move_alloc (a, b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
Harald Anlauf changed:
What|Removed |Added
CC||anlauf at gmx dot de
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
--- Comment #2 from Gerhard Steinmetz
---
For completeness, older versions below 5 give :
$ gfortran-4.9 z1.f90
z1.f90:3.20:
call move_alloc (a, b)
1
Error: 'from' argument of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
--- Comment #1 from Gerhard Steinmetz
---
Similar with subroutine named "a" :
$ cat z2.f90
program p
class(*), allocatable :: a, b
call move_alloc (a, b)
contains
subroutine a
end
end
$
10 matches
Mail list logo