Re: [Patch, fortran] PR54286 - [4.8 Regression] Accepts invalid proc-pointer assignments involving proc-ptr function result

2013-01-13 Thread Paul Richard Thomas
Dear Janus (and Dominique), Thanks for the review. I found that the symmetrization is necessary experimentally :-) I did not think anything of it, since I have encountered such asymmetries elsewhere in interface.c. When I have a quiet moment, I'll try to understand why this is necessary for th

Re: [Patch, fortran] PR54286 - [4.8 Regression] Accepts invalid proc-pointer assignments involving proc-ptr function result

2013-01-12 Thread Janus Weil
Hi Paul, > It is something of an exaggeration to say that this PR is a regession, > although it is true that gcc-4.7 gives error messages for the testcase > in the correct places. In fact, these messages disappear if IMPLICIT > INTEGER (a) at the start of the testcase. > > The fix ensures that th

[Patch, fortran] PR54286 - [4.8 Regression] Accepts invalid proc-pointer assignments involving proc-ptr function result

2013-01-12 Thread Paul Richard Thomas
Dear All, It is something of an exaggeration to say that this PR is a regession, although it is true that gcc-4.7 gives error messages for the testcase in the correct places. In fact, these messages disappear if IMPLICIT INTEGER (a) at the start of the testcase. The fix ensures that the interfac