http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49110
--- Comment #7 from John <jwmwalrus at gmail dot com> 2011-05-22 17:24:07 UTC --- (In reply to comment #6) > On Sun, May 22, 2011 at 04:57:44PM +0000, jwmwalrus at gmail dot com wrote: > > > This patch allows your code to compile, but I > > > don't know if it works correctly. Do you have > > > a complete self-contained small testcase? > > > > > > > The module shown is self-contained (it only depends on iso_c_binding, which > > is > > an intrinsic module). I've added the corresponding source file to this bug > > as > > an attachment. > > > > That's no what I meant. Obviously, I already stated > the patch allowed me compile your code. > > Do you have a COMPLETE self-contained testcase? As in > > program foo > use mod1 > DO SOMETHING HERE TO USE c2fstring() > end program foo Sorry for the double post (I now know the effect of the refresh button on Bugzilla). As I said, the source code is attached (the label is "Test case with main unit", the name of the file is test_gfortran_pure_main.f90).