This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: an ICE with allocate ?
>> Although the compiler should not ICE, the code is invalid Fortran.
>> The stat-variable is required to be a scalar-int-variable.
>
> Yes, I know that it is an "user error". Nevertheless, perhaps, the compiler
> error message could be improved.
Sure, an ICE always means you found a compiler bug. For invalid code,
the compiler should rather tell you what you are doing wrong, instead
of spitting out some obscure internal error. Can you file a PR in
bugzilla?
Thanks,
Janus
- References:
- [Patch, Fortran, F03] PR 40996: Allocatable Scalars
- Re: [Patch, Fortran, F03] PR 40996: Allocatable Scalars
- Re: [Patch, Fortran, F03] PR 40996: Allocatable Scalars
- Re: [Patch, Fortran, F03] PR 40996: Allocatable Scalars
- Re: [Patch, Fortran, F03] PR 40996: Allocatable Scalars
- Re: [Patch, Fortran, F03] PR 40996: Allocatable Scalars
- Re: [Patch, Fortran, F03] PR 40996: Allocatable Scalars
- From: Paul Richard Thomas
- an ICE with allocate ?
- Re: an ICE with allocate ?
- Re: an ICE with allocate ?