This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38404] Warning message identifies incorrect line
- From: "steve dot chapel at a2pg dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2010 13:15:02 -0000
- Subject: [Bug fortran/38404] Warning message identifies incorrect line
- References: <bug-38404-14861@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from steve dot chapel at a2pg dot com 2010-05-13 13:15 -------
Excellent! The new warning is far more understandable than the old.
X'"R" IN CALL RANDOM MAY NOT BE USED OUTSIDE THE BLOCK CONTAINING T
1
Warning: Initialization string starting at (1) was truncated after 72
characters to match the variable
If it's difficult to place the error marker at the location the string was
truncated, would it be easy to list the number of characters in the
initialization string, so that one would not have to count characters to
determine how many characters need to be removed, or how much larger to make
the variable?
Example:
X'"R" IN CALL RANDOM MAY NOT BE USED OUTSIDE THE BLOCK CONTAINING T
1
Warning: Initialization string of 73 characters starting at (1) was
truncated after 72 characters to match the variable
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38404