[fortran, patch] PR 21881, issue a fatal error instead of an ICE
FX
fxcoudert@gmail.com
Tue Nov 8 09:16:00 GMT 2011
PR21881 is about cases like this:
> type t
> integer i001(268435456)
> end type t
> type(t), allocatable :: x(:)
where (on 32-bit systems) the array in the derived type is too large for us to handle (the array descriptor redesign might make the problem go away altogether, but that's not for now AFAIU). So, the attached patch simply turns the ICE into a fatal error. The error being fatal, it doesn't trigger double errors as far as I could check.
I'm not adding a testcase, though I could if you think that's necessary.
Regtested on x86_64-linux, OK to commit to trunk?
FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diag.diff
Type: application/octet-stream
Size: 488 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111108/c7917168/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diag.ChangeLog
Type: application/octet-stream
Size: 166 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111108/c7917168/attachment-0001.obj>
More information about the Fortran
mailing list