This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47040] Make error message for empty array constructor more helpful/correct
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Dec 2010 10:16:59 +0000
- Subject: [Bug fortran/47040] Make error message for empty array constructor more helpful/correct
- Auto-submitted: auto-generated
- References: <bug-47040-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47040
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-12-22 10:16:56 UTC ---
Draft patch - feel free to take it, I am not sure when I have the time to
submit it.
--- a/gcc/fortran/array.c
+++ b/gcc/fortran/array.c
@@ -1054,7 +1054,8 @@ gfc_match_array_constructor (gfc_expr **result)
goto done;
else
{
- gfc_error ("Empty array constructor at %C is not allowed");
+ gfc_error ("Empty array constructor without type-spec at %C is not "
+ "allowed");
goto cleanup;
}
}