]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/30865 ([4.1, 4.2 only] optional argument passed on to size(...,dim=))
authorThomas Koenig <Thomas.Koenig@online.de>
Mon, 26 Feb 2007 21:16:00 +0000 (21:16 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 26 Feb 2007 21:16:00 +0000 (21:16 +0000)
commit88f206a40d6c60b6fb9131db5b29eb55c61fd3e3
tree03d0139d7f31503405d060bfbd208d45a8eff298
parent57a4c089e23551d96817d080a2fce4f9e6408343
re PR fortran/30865 ([4.1, 4.2 only] optional argument passed on to size(...,dim=))

2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>
    Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30865
* trans-intrinsic.c (gfc_conv_intrinsic_size):
If dim is an optional argument, check for its
presence and call size0 or size1, respectively.

2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>

PR fortran/30865
* size_optional_dim_1.f90:  New test.

Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>
From-SVN: r122342
gcc/fortran/ChangeLog
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/size_optional_dim_1.f90 [new file with mode: 0644]