[Bug fortran/50892] Internal compiler error: in gimplify_expr, at gimplify.c:7477
jb at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 6 10:41:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50892
--- Comment #10 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Sat Jan 6 10:41:03 2018
New Revision: 256310
URL: https://gcc.gnu.org/viewcvs?rev=256310&root=gcc&view=rev
Log:
PR 50892 Latent bug in char pointer assignment
Due to r256284 (PR 78534) there was a latent bug that reared it's head
due to different character length types in the pointer
assignment. Fixed by this patch, which also adds a reduced testcase.
Regtested on x86_64-pc-linux-gnu, committed to trunk as obvious.
gcc/fortran/ChangeLog:
2018-01-06 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/50892
* trans-expr.c (gfc_trans_pointer_assignment): fold_convert rhs to
lhs type.
gcc/testsuite/ChangeLog:
2018-01-06 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/50892
* gfortran.dg/char_pointer_assign_icb_1.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/char_pointer_assign_icb_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list