This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]