[PATCH] PR fortran/84511 -- Fix C_LOC in a transfer statement

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Feb 22 20:01:00 GMT 2018


All,

The attached patch handles C_LOC in a transfer statement
such as "print *, c_loc(xxx)".  The bug report contains
two files that must be compiled separately to exhibit 
the bug.  I have no idea how to write a testcase for this
situation.  If someone can write a testcase, I'm fine
with that.  If someone can tell me how to write a testcase,
I'm fine with that, too. 

Regression tested on x86_64-*-freebsd.  OK to commit?

2018-02-22  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/84511
	* trans-io.c (transfer_expr): Deal with C_LOC in transfer statement.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr84511.diff
Type: text/x-diff
Size: 657 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180222/ebf0dbb6/attachment.bin>


More information about the Fortran mailing list