This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/29916] Dimension of a function result as host association does not work



------- Comment #1 from pault at gcc dot gnu dot org  2006-11-20 20:38 -------
Created an attachment (id=12653)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12653&action=view)
A patch for this PR.

Tobias and Dominique,

This is nearly identical to PR23446, which I fixed.  It was therefore and easy
job to extend the principle of host associated variables in dummy specification
expressions to those of array-valued functions.

I bolstered up the test for both by insisting that not only the
gfc_is_formal_arg flag being set but that the symbol should be in the current
namespace.  If this seems odd, remember that contained procedures' symbols are
found in their parent's namespace.

I have checked that host_dummy_index_1.f90 works OK but have not regtested yet.
  It is possible that ENTRYs are messed up but I have not checked this.

I am 1000km from my workstation right now and will be there for some 10 days
yet.  I have not managed to penetrate the firewalls(x4!) here with svn+ssh and
so can commit nothing.  If you are moved to do so, please take the fix and make
it fly. Otherwise, I'll do it when I get home.

Best regards

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29916


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]