This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, Fortran] PR 38536 ICE with C_LOC on consecutive array and substring references.
- From: Mikael Morin <mikael dot morin at tele2 dot fr>
- To: gfortran <fortran at gcc dot gnu dot org>, correctifs gcc <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 31 Dec 2008 01:09:37 +0100
- Subject: [Patch, Fortran] PR 38536 ICE with C_LOC on consecutive array and substring references.
Hello,
this fixes part of PR 38536, where the following was leading to an ICE:
f_ptr = C_LOC(chrScalar%c(1)(1:1))
The code checking for pointerness of the argument (which is where the
ICE occurs) has been "rewritten" using gfc_is_data_pointer.
One of the testcase is that of the PR.
The other one is a newly accepted program (and valid I think).
regression-tested on x86-64-unknown-linux-gnu.
OK for trunk (and later 4.3?), or should I wait for 4.5?
Mikael