diff options
author | Tobias Burnus <burnus@net-b.de> | 2007-11-29 15:56:48 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2007-11-29 15:56:48 +0100 |
commit | 42a8c358ced433f956f1a6010d4d4188bd3b6074 (patch) | |
tree | d4243f7dae02c16b6e49115e05a28093ba7e8ad0 /gcc/fortran/iresolve.c | |
parent | a6dcb051e93cdf2b5280a11a9f4225d6cc46b434 (diff) | |
download | gcc-42a8c358ced433f956f1a6010d4d4188bd3b6074.zip gcc-42a8c358ced433f956f1a6010d4d4188bd3b6074.tar.gz gcc-42a8c358ced433f956f1a6010d4d4188bd3b6074.tar.bz2 |
re PR fortran/34262 (MVBITS does not work for arrays)
2007-11-29 Tobias Burnus <burnus@net-b.de>
PR fortran/34262
* intrinsic.c (gfc_get_intrinsic_sub_symbol): Add comment.
(gfc_intrinsic_sub_interface): Copy elemental state if needed.
* iresolve.c (gfc_resolve_mvbits): Mark procedure as elemental.
2007-11-29 Tobias Burnus <burnus@net-b.de>
PR fortran/34262
* gfortran.dg/mvbits_3.f90: New.
From-SVN: r130513
Diffstat (limited to 'gcc/fortran/iresolve.c')
-rw-r--r-- | gcc/fortran/iresolve.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/iresolve.c b/gcc/fortran/iresolve.c index b847044..a68e42e 100644 --- a/gcc/fortran/iresolve.c +++ b/gcc/fortran/iresolve.c @@ -2581,6 +2581,8 @@ gfc_resolve_mvbits (gfc_code *c) name = gfc_get_string (PREFIX ("mvbits_i%d"), c->ext.actual->expr->ts.kind); c->resolved_sym = gfc_get_intrinsic_sub_symbol (name); + /* Mark as elemental subroutine as this does not happen automatically. */ + c->resolved_sym->attr.elemental = 1; } |