This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36894] question on gfortran character*(*)
- From: "jhuddleston at hughes dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2008 13:17:33 -0000
- Subject: [Bug fortran/36894] question on gfortran character*(*)
- References: <bug-36894-16485@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jhuddleston at hughes dot net 2008-07-22 13:17 -------
Created an attachment (id=15938)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15938&action=view)
zip container with two files: C++ and GFORTRAN
burnus at gcc dot gnu dot org requested a small sample set demonstrating the
issue
My current version from subversion is 138025
Thank you. I went through four scenarios and documented them in the small
sample set. Of the four, the case that works for both CHARACTER(*) and
CHARACTER*(*) is when an integer is passed in front of the string AND if the
size of the string is passed at the end.
If the C++ code does not pass an integer before the string, the *(*) will fail.
This only appears in the C++ / GFortran interaction which is why I sent this
to the GCC group. I keep the most current GCC/G++/GFORTRAN code from
subversion and build nightly under Windows Cygwin.
John
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36894