re PR fortran/34868 (ICE with -ff2c for function returning a complex number)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 28 Feb 2008 15:42:21 +0000 (15:42 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 28 Feb 2008 15:42:21 +0000 (15:42 +0000)
commit43e7fd21ac4980fc31c40e76abf3223e2be167f1
treea13a53820b1a4fc0ec96de75d9fa6c175f09961a
parentcbfb21c1c1e1b9d012f4d67838a88a94b5fb5e24
re PR fortran/34868 (ICE with -ff2c for function returning a complex number)

PR fortran/34868

* trans-expr.c (gfc_conv_variable): Don't build indirect
references when explicit interface is mandated.
* resolve.c (resolve_formal_arglist): Set attr.always_explicit
on the result symbol as well as the procedure symbol.

* gfortran.dg/f2c_9.f90: New test.

From-SVN: r132751
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/f2c_9.f90 [new file with mode: 0644]