[Bug fortran/49397] [F03] ICE with proc pointer assignment
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 11 13:12:00 GMT 2013
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.
More information about the Gcc-bugs
mailing list