aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-07-10 18:26:05 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-07-10 18:26:05 +0200
commit794ba78be2148d3a92bccea446169e4dfad90c45 (patch)
tree614b27bdb1b7c79d64f240231fc1fac31054c177 /gcc/fortran
parent33dc5b0b3efaa33d24ec7eae9cebc862dc85edeb (diff)
downloadgcc-794ba78be2148d3a92bccea446169e4dfad90c45.zip
gcc-794ba78be2148d3a92bccea446169e4dfad90c45.tar.gz
gcc-794ba78be2148d3a92bccea446169e4dfad90c45.tar.bz2
re PR fortran/16336 (ICE with common block in module)
PR fortran/16336 * match.c (match_common): Fix error reporting for used common. From-SVN: r84462
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog3
-rw-r--r--gcc/fortran/match.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index deb1566..c2551f2 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -3,6 +3,9 @@
* expr.c (gfc_check_pointer_assign): Verify that rank of the LHS
and RHS match. Return early if the RHS is NULL().
+ PR fortran/16336
+ * match.c (match_common): Fix error reporting for used common.
+
2004-07-10 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* trans-common.c: Fix whitespace issues, make variable names
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index f8bf2b3..2d85a56 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -2146,7 +2146,7 @@ gfc_match_common (void)
if (t->use_assoc)
{
gfc_error ("COMMON block '%s' at %C has already "
- "been USE-associated");
+ "been USE-associated", name);
goto cleanup;
}
}