Re: [PATCH] Fix PR52289, a typoed word in an error message

2014-02-08 Thread Andreas Schwab
Jeff Law l...@redhat.com writes:

 On 02/06/14 13:39, Benno Schulenberg wrote:

 [Oops, had a wrong bug number in the subject line.]

 Below patch fixes another miswording in an error message,
 reported by Roland Stigge.  Please apply.


 2014-02-06  Benno Schulenberg  bensb...@justemail.net

  PR translation/52289
  * fortran/resolve.c (resolve_ordinary_assign): Fix typoed word
  in an error message.
 Thanks.  Installed.

Sometimes even such a trivial patch needs to be regtested.  Installed.

Andreas.

PR translation/52289
* gfortran.dg/coarray_8.f90: Update dg-error match.

diff --git a/gcc/testsuite/gfortran.dg/coarray_8.f90 
b/gcc/testsuite/gfortran.dg/coarray_8.f90
index 6defc1a..91d6e9a 100644
--- a/gcc/testsuite/gfortran.dg/coarray_8.f90
+++ b/gcc/testsuite/gfortran.dg/coarray_8.f90
@@ -112,7 +112,7 @@ contains
 type(t),allocatable :: x[:]
 type(t) :: y
 x = y
-x[1] = y ! { dg-error must not be have an allocatable ultimate component 
}
+x[1] = y ! { dg-error must not have an allocatable ultimate component }
   end subroutine assign2
 end module mmm3
 
-- 
1.8.5.4

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.


Re: [PATCH] Fix PR52289, a typoed word in an error message

2014-02-07 Thread Jeff Law

On 02/06/14 13:39, Benno Schulenberg wrote:


[Oops, had a wrong bug number in the subject line.]

Below patch fixes another miswording in an error message,
reported by Roland Stigge.  Please apply.


2014-02-06  Benno Schulenberg  bensb...@justemail.net

 PR translation/52289
 * fortran/resolve.c (resolve_ordinary_assign): Fix typoed word
 in an error message.

Thanks.  Installed.

jeff



[PATCH] Fix PR52289, a typoed word in an error message

2014-02-06 Thread Benno Schulenberg

[Oops, had a wrong bug number in the subject line.]

Below patch fixes another miswording in an error message,
reported by Roland Stigge.  Please apply.


2014-02-06  Benno Schulenberg  bensb...@justemail.net

PR translation/52289
* fortran/resolve.c (resolve_ordinary_assign): Fix typoed word
in an error message.


Index: fortran/resolve.c
===
--- fortran/resolve.c(revision 207551)
+++ fortran/resolve.c(working copy)
@@ -9218,7 +9218,7 @@
   /* F2008, Section 7.2.1.2.  */
   if (gfc_is_coindexed (lhs)  gfc_has_ultimate_allocatable (lhs))
 {
-  gfc_error (Coindexed variable must not be have an allocatable ultimate 
+  gfc_error (Coindexed variable must not have an allocatable ultimate 
  component in assignment at %L, lhs-where);
   return false;
 }