PR fortran/36167

Daniel Kraft d@domob.eu
Mon Sep 8 11:53:00 GMT 2008


Hi Paul,

regarding PR 36167, I think my patch for 37199 (to add the missing arra 
spec to the new symbols when doing interface mapping) really fixed the 
problem.  I did some debugging now, and the ICE occurs inside 
gfc_conv_expr right after gfc_apply_interface_mapping_to_expr inside 
gfc_apply_interface_mapping, where the expression mapped is an LBOUND 
intrinsic call and the argument loses its array spec during interface 
mapping.  Because of this the "descriptor" seems to be a raw pointer 
rather than a real descriptor in the failing assertion.

If you agree, I'll check in the attached test from the PR (which now 
works) and close the PR.

Cheers,
Daniel

-- 
Done:     Arc-Bar-Cav-Sam-Val-Wiz, Dwa-Elf-Gno-Hum-Orc, Law-Neu-Cha, Fem-Mal
To go:    Hea-Kni-Mon-Pri-Ran-Rog-Tou
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: array_function_3.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080908/a717ff05/attachment.f90>


More information about the Fortran mailing list