This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34246] gfortran.dg/bind_c_usage_16.f03 doesn't work
- 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: 27 Nov 2007 12:38:55 -0000
- Subject: [Bug fortran/34246] gfortran.dg/bind_c_usage_16.f03 doesn't work
- References: <bug-34246-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2007-11-27 12:38 -------
Valgrind finds:
==26293== Use of uninitialised value of size 4
==26293== at 0x80485D5: returnA (bind_c_usage_16.f03:14)
==26293== Bad permissions for mapped region at address 0x8048B10
==26293== at 0x80485C1: returnB (bind_c_usage_16.f03:17)
gimple dump (excerpt): The following <retval> looks a bit odd, but maybe I'm
just not used to gimple:
--- bind_c_usage_16.f03.m32gimp
+++ bind_c_usage_16.f03.m64gimp
+ character(kind=1) D.864[1:1];
character(kind=1) __result_foo[1:1];
__result_foo[1]{lb: 1 sz: 1} = 66;
- <retval> = __result_foo;
- return <retval>;
+ D.864 = __result_foo;
+ return D.864;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34246