http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49397

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |

--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to Tobias Burnus from comment #0)
> Without the "print *, f()" line, it is rejected with:
>       p => f                           ! (1)
>            1
> Error: Invalid procedure pointer assignment at (1)

This error message is gone since 4.8 (which is good, since the code is supposed
to be valid.

With 4.8 and trunk, unfortunately, both variants give the same ICE.


> But with the line, one gets:
> test.f90: In function 's':
> test.f90:2:0: internal compiler error: in build_function_decl, at
> fortran/trans-decl.c:1778

Note that the ICE does not occur with 4.4.7, but it does at least with 4.6 on
upwards (regression!). Have not checked 4.5.

Reply via email to