This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37793] New: Improve error message for non_array(i) = array
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2008 07:40:02 -0000
- Subject: [Bug fortran/37793] New: Improve error message for non_array(i) = array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Currently, "non_array(i) = array" is read as statement function at an invalid
place. A more likely error is that non_array was supposed to be an array.
Found at:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/bcff74be5cc12be8
Current error message:
Error: Unexpected STATEMENT FUNCTION statement at (1)
Proposed:
Error: Unexpected STATEMENT FUNCTION statement or an assignment to an
undeclared array at (1)
--
Summary: Improve error message for non_array(i) = array
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37793