This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30940] Fortran 2003: Scalar CHARACTER supplied to array dummy
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jun 2007 23:01:40 -0000
- Subject: [Bug fortran/30940] Fortran 2003: Scalar CHARACTER supplied to array dummy
- References: <bug-30940-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2007-06-28 23:01 -------
Created an attachment (id=13802)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13802&action=view)
tests, early draft of a patch
Attached is some tests plus some minimal patch.
Using the patch most valid cases should work.
However, some invalid cases are allowed (no range check).
The tests have been verified using NAG f95, except for the fourth case in
char_argument_3.f90 for which f95 does not give an error.
One should re-read the standard and check whether I miss some invalid/valid
cases, which should be covered.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30940