diff options
author | janus <janus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-24 08:34:14 +0000 |
---|---|---|
committer | janus <janus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-24 08:34:14 +0000 |
commit | d483863c8f5e6b492eca565da9afd042d0fd72c9 (patch) | |
tree | 8a05766cd1990b96850ccead3898f876692730d4 /gcc/fortran | |
parent | 38f9a450fe978beacf67776de9ca8be5a95e80b7 (diff) | |
download | gcc-d483863c8f5e6b492eca565da9afd042d0fd72c9.tar.gz |
2009-04-24 Janus Weil <janus@gcc.gnu.org>
PR fortran/39861
PR fortran/39864
* symbol.c (gfc_copy_formal_args_intr): Set attr.flavor and attr.dummy
for the formal arguments.
2009-04-24 Janus Weil <janus@gcc.gnu.org>
PR fortran/39861
PR fortran/39864
* gfortran.dg/intrinsic_1.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146677 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/fortran/symbol.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2932af3fdac..6af8cbe2042 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2009-04-24 Janus Weil <janus@gcc.gnu.org> + + PR fortran/39861 + PR fortran/39864 + * symbol.c (gfc_copy_formal_args_intr): Set attr.flavor and attr.dummy + for the formal arguments. + 2009-04-21 Taras Glek <tglek@mozilla.com> * f95-lang.c: Update GTY annotations to new syntax. diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index 72b06840742..6aa63bebabe 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -3865,6 +3865,8 @@ gfc_copy_formal_args_intr (gfc_symbol *dest, gfc_intrinsic_sym *src) /* May need to copy more info for the symbol. */ formal_arg->sym->ts = curr_arg->ts; formal_arg->sym->attr.optional = curr_arg->optional; + formal_arg->sym->attr.flavor = FL_VARIABLE; + formal_arg->sym->attr.dummy = 1; /* If this isn't the first arg, set up the next ptr. For the last arg built, the formal_arg->next will never get set to |