This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51970] [OOP] gimplification failed for polymorphic MOVE_ALLOC
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Jan 2012 22:35:43 +0000
- Subject: [Bug fortran/51970] [OOP] gimplification failed for polymorphic MOVE_ALLOC
- Auto-submitted: auto-generated
- References: <bug-51970-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51970
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-24 22:35:43 UTC ---
The patch attached to comment #4 + the "hack" let the test compile without
error (although I don't know if it is valid). I have noticed the following
changes:
For 51948, before the patch I had two errors
[macbook] f90/bug% gfc pr51948.f90
pr51948.f90:14.24:
call move_alloc (x, func)
1
Error: 'to' argument of 'move_alloc' intrinsic at (1) must be a variable
pr51948.f90:7.24:
call move_alloc (x, func)
1
Error: the 'from' and 'to' arguments of 'move_alloc' intrinsic at (1) must have
the same rank 0/1
After the patch I have only one
[macbook] f90/bug% gfc pr51948.f90
pr51948.f90:14.24:
call move_alloc (x, func)
1
Error: 'to' argument of 'move_alloc' intrinsic at (1) must be a variable
For another avatar and the test in pr51977, the error is replaced by an ICE:
before the patch
[macbook] f90/bug% gfc pr51948_db_1.f90
pr51948_db_1.f90:7.24:
call move_alloc (x, func)
1
Error: the 'from' and 'to' arguments of 'move_alloc' intrinsic at (1) must have
the same rank 0/1
after the patch
[macbook] f90/bug% gfc pr51948_db_1.f90
pr51948_db_1.f90: In function 'func':
pr51948_db_1.f90:9:0: internal compiler error: in fold_convert_loc, at
fold-const.c:2016