]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/45308 ([F2003] DATE_AND_TIME does _not_ blank-pad strings)
authorJakub Jelinek <jakub@redhat.com>
Tue, 17 Aug 2010 18:08:05 +0000 (20:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Aug 2010 18:08:05 +0000 (20:08 +0200)
commit47b914698dd6a773392a881fc5afc9b8929b324c
treea116d1b19f474b35987ce4e962e78b89ef101e20
parent35d3d688fc4b8adde86a554a5061f2a7d54df6a2
re PR fortran/45308 ([F2003] DATE_AND_TIME does _not_ blank-pad strings)

PR fortran/45308
* intrinsics/date_and_time.c (date_and_time): Pass __{zone,time,date}_len
instead of {ZONE,TIME,DATE}_LEN as second argument to fstrcpy.  Drop
asserts.  Adjust comment to the F2003 wording from the F95 wording.

* gfortran.dg/pr45308.f03: New test.

From-SVN: r163312
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr45308.f03 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/intrinsics/date_and_time.c