This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34246] gfortran.dg/bind_c_usage_16.f03 doesn't work



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]