[Patch, Fortran] attribute declaration outside of INTERFACE body (PR36361)
Janus Weil
jaydub66@googlemail.com
Sun Jun 1 22:16:00 GMT 2008
> here is my patch for PR36361, including test cases, regtested on
> i686-pc-linux-gnu with no
> failures. It also includes the one-line fix from PR36275 comment #3.
I have modified the fix for PR36275 a little, so that it also fixes
PR36322, which is actually related. Both are based on a sub-optimal
mechanism for copying the typespec for a PROCEDURE from its interface
(which happens in "resolve_symbol"). Before, the elements of ts were
just copied one by one (missing a few, which caused the problems). Now
I made sure that all of them are copied, an that the way of doing this
still works even if new elements are added in the future.
I also added a test case for PR36322.
> There is just one thing I need someone's opinion on: The new test case
> interface_24.f90 has some slight issues regarding error recovery.
I'd still like to hear some thoughts on this.
Cheers,
Janus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr36361_new.diff
Type: text/x-patch
Size: 6980 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080601/6301cd90/attachment.bin>
More information about the Fortran
mailing list