https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77505

--- Comment #5 from Elizebeth Punnoose <elizebethp at gmail dot com> ---
Hi Steve,

To answer your first question, I am covered by the HPE corporate assignment.
When posting the patch, I will be doing so from my corporate email id.

The Fortran 2008 standards page at
http://www.j3-fortran.org/doc/year/10/10-007.pdf, states the the following.
4.4.3.2 Character type specifier
5 If the character length parameter value evaluates to a negative value, 
the length of character entities declared is zero.
I do agree with you that a negative character length does not indicate a
violation of the standard, rather that it has to be considered as len=0, and
hence does not warrant issuing a warning. The warning message can be hidden
behind the -fcheck=bounds option.

Reply via email to