]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Replace can't in error messages for Fortran.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2019 15:11:42 +0000 (15:11 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2019 15:11:42 +0000 (15:11 +0000)
2019-03-12  Martin Liska  <mliska@suse.cz>

* c-opts.c (c_common_handle_option): Wrap option with %< and %>.
2019-03-12  Martin Liska  <mliska@suse.cz>

* decl.c (add_init_expr_to_sym): Replace usage of 'can't'
with 'cannot'.
(variable_decl): Likewise.
(cray_pointer_decl): Likewise.
(match_binding_attributes): Likewise.
* f95-lang.c (gfc_init): Likewise.
* interface.c (gfc_check_typebound_override): Likewise.
* intrinsic.c (make_generic): Likewise.
* module.c (dump_module): Likewise.
(gfc_use_module): Likewise.
* primary.c (gfc_convert_to_structure_constructor): Likewise.
* resolve.c (resolve_entries): Likewise.
(check_generic_tbp_ambiguity): Likewise.
(get_checked_tb_operator_target): Likewise.
* scanner.c (load_file): Likewise.
* trans-expr.c (gfc_conv_intrinsic_to_class): Likewise.
2019-03-12  Martin Liska  <mliska@suse.cz>

* config/i386/i386.c: Reword an error message.
2019-03-12  Martin Liska  <mliska@suse.cz>

* gfortran.dg/abstract_type_3.f03: Amend test-case scan
patterns.
* gfortran.dg/binding_label_tests_4.f03: Likewise.
* gfortran.dg/c_f_pointer_tests_6.f90: Likewise.
* gfortran.dg/c_funloc_tests_6.f90: Likewise.
* gfortran.dg/c_loc_tests_17.f90: Likewise.
* gfortran.dg/constructor_9.f90: Likewise.
* gfortran.dg/dec_structure_8.f90: Likewise.
* gfortran.dg/entry_4.f90: Likewise.
* gfortran.dg/init_char_with_nonchar_ctr.f90: Likewise.
* gfortran.dg/initialization_23.f90: Likewise.
* gfortran.dg/logical_assignment_1.f90: Likewise.
* gfortran.dg/pr80752.f90: Likewise.
* gfortran.dg/pr88116_1.f90: Likewise.
* gfortran.dg/pr88467.f90: Likewise.
* gfortran.dg/typebound_call_7.f03: Likewise.
* gfortran.dg/typebound_generic_1.f03: Likewise.
* gfortran.dg/typebound_operator_2.f03: Likewise.
* gfortran.dg/typebound_operator_4.f03: Likewise.
* gfortran.dg/typebound_proc_9.f03: Likewise.
* gfortran.dg/unlimited_polymorphic_2.f03: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269616 138bc75d-0d04-0410-961f-82ee72b054a4

35 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/config/i386/i386.c
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/f95-lang.c
gcc/fortran/interface.c
gcc/fortran/intrinsic.c
gcc/fortran/module.c
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/fortran/scanner.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/abstract_type_3.f03
gcc/testsuite/gfortran.dg/binding_label_tests_4.f03
gcc/testsuite/gfortran.dg/c_f_pointer_tests_6.f90
gcc/testsuite/gfortran.dg/c_funloc_tests_6.f90
gcc/testsuite/gfortran.dg/c_loc_tests_17.f90
gcc/testsuite/gfortran.dg/constructor_9.f90
gcc/testsuite/gfortran.dg/dec_structure_8.f90
gcc/testsuite/gfortran.dg/entry_4.f90
gcc/testsuite/gfortran.dg/init_char_with_nonchar_ctr.f90
gcc/testsuite/gfortran.dg/initialization_23.f90
gcc/testsuite/gfortran.dg/logical_assignment_1.f90
gcc/testsuite/gfortran.dg/pr80752.f90
gcc/testsuite/gfortran.dg/pr88116_1.f90
gcc/testsuite/gfortran.dg/pr88467.f90
gcc/testsuite/gfortran.dg/typebound_call_7.f03
gcc/testsuite/gfortran.dg/typebound_generic_1.f03
gcc/testsuite/gfortran.dg/typebound_operator_2.f03
gcc/testsuite/gfortran.dg/typebound_operator_4.f03
gcc/testsuite/gfortran.dg/typebound_proc_9.f03
gcc/testsuite/gfortran.dg/unlimited_polymorphic_2.f03

index 8250ada384e535af1648fe3925c81c0d3f572b36..f9cc4c2b2468a890257028479663a3e02ff4a442 100644 (file)
@@ -1,3 +1,7 @@
+2019-03-12  Martin Liska  <mliska@suse.cz>
+
+       * config/i386/i386.c: Reword an error message.
+
 2019-03-12  Martin Jambor  <mjambor@suse.cz>
 
        * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
index 885e3265d5b79dd6bf589c89c54a6a1a5e21fa3b..910cee859419f8daade879a51507428e5af0682d 100644 (file)
@@ -1,3 +1,7 @@
+2019-03-12  Martin Liska  <mliska@suse.cz>
+
+       * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
+
 2019-03-11  Martin Liska  <mliska@suse.cz>
 
        * c-opts.c (c_common_post_options): Wrap apostrophes
index daa02a5e72d1aebe90e2b4cfd760c4609886ef6c..454cfa0ee3e157d9ffdfe9527ff7b669e66253dc 100644 (file)
@@ -324,7 +324,7 @@ c_common_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value,
       else
        {
          if (quote_chain_split)
-           error ("-I- specified twice");
+           error ("%<-I-%> specified twice");
          quote_chain_split = true;
          split_quote_chain ();
          inform (input_location, "obsolete option %<-I-%> used, "
index 896c6f33d40f9a746d00469e7dcee950958d2815..fe459071aaff0b21cbd0c6fed3547c57cd4f8b8e 100644 (file)
@@ -38375,7 +38375,8 @@ rdseed_step:
       mode0 = insn_data[icode].operand[0].mode;
       if (!insn_data[icode].operand[0].predicate (op0, mode0))
        {
-         error ("xabort argument must be an 8-bit immediate");
+         error ("the argument to %<xabort%> intrinsic must "
+                "be an 8-bit immediate");
          return const0_rtx;
        }
       emit_insn (gen_xabort (op0));
index 9cefe39bfb8b2c92ded0ee0e856e8c6862be4b1d..49825741b950f4023227fb947d762e5b4ac5915b 100644 (file)
@@ -1,3 +1,22 @@
+2019-03-12  Martin Liska  <mliska@suse.cz>
+
+       * decl.c (add_init_expr_to_sym): Replace usage of 'can't'
+       with 'cannot'.
+       (variable_decl): Likewise.
+       (cray_pointer_decl): Likewise.
+       (match_binding_attributes): Likewise.
+       * f95-lang.c (gfc_init): Likewise.
+       * interface.c (gfc_check_typebound_override): Likewise.
+       * intrinsic.c (make_generic): Likewise.
+       * module.c (dump_module): Likewise.
+       (gfc_use_module): Likewise.
+       * primary.c (gfc_convert_to_structure_constructor): Likewise.
+       * resolve.c (resolve_entries): Likewise.
+       (check_generic_tbp_ambiguity): Likewise.
+       (get_checked_tb_operator_target): Likewise.
+       * scanner.c (load_file): Likewise.
+       * trans-expr.c (gfc_conv_intrinsic_to_class): Likewise.
+
 2019-03-12  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/89363
index a29e2db0bd6aa1e532fcfa27107e17abbdb23121..f6411f148752f2dfeb8894aa46d1998ff14dac27 100644 (file)
@@ -1978,7 +1978,7 @@ add_init_expr_to_sym (const char *name, gfc_expr **initp, locus *var_locus)
 
          if (init->rank == 0)
            {
-             gfc_error ("Can't initialize implied-shape array at %L"
+             gfc_error ("Cannot initialize implied-shape array at %L"
                         " with scalar", &sym->declared_at);
              return false;
            }
@@ -2490,7 +2490,7 @@ variable_decl (int elem)
       if (as->type == AS_IMPLIED_SHAPE && current_attr.flavor != FL_PARAMETER)
        {
          m = MATCH_ERROR;
-         gfc_error ("Non-PARAMETER symbol %qs at %L can't be implied-shape",
+         gfc_error ("Non-PARAMETER symbol %qs at %L cannot be implied-shape",
                     name, &var_locus);
          goto cleanup;
        }
@@ -2668,7 +2668,7 @@ variable_decl (int elem)
              else
                {
                  if (!gfc_set_array_spec (sym, cp_as, &var_locus))
-                   gfc_internal_error ("Couldn't set pointee array spec.");
+                   gfc_internal_error ("Cannot set pointee array spec.");
 
                  /* Fix the array spec.  */
                  m = gfc_mod_pointee_as (sym->as);
@@ -8538,7 +8538,7 @@ cray_pointer_decl (void)
       if (cpte->as == NULL)
        {
          if (!gfc_set_array_spec (cpte, as, &var_locus))
-           gfc_internal_error ("Couldn't set Cray pointee array spec.");
+           gfc_internal_error ("Cannot set Cray pointee array spec.");
        }
       else if (as != NULL)
        {
@@ -10706,7 +10706,7 @@ match_binding_attributes (gfc_typebound_proc* ba, bool generic, bool ppc)
   /* NON_OVERRIDABLE and DEFERRED exclude themselves.  */
   if (ba->non_overridable && ba->deferred)
     {
-      gfc_error ("NON_OVERRIDABLE and DEFERRED can't both appear at %C");
+      gfc_error ("NON_OVERRIDABLE and DEFERRED cannot both appear at %C");
       goto error;
     }
 
index ad81f7d93a0b371d51c2a98fd0f5dd3215d0fbf1..3e3d3046bdb5147fafb0d4e2b050cd11ded5608e 100644 (file)
@@ -248,7 +248,7 @@ gfc_init (void)
   gfc_init_1 ();
 
   if (!gfc_new_file ())
-    fatal_error (input_location, "can't open input file: %s", gfc_source_file);
+    fatal_error (input_location, "cannot open input file: %s", gfc_source_file);
 
   if (flag_preprocess_only)
     return false;
index a07e658db881c71e7b53f32bf59c7db3e14371ea..c9781d7b9f800d7b0ea227a89bd08c1d346c8f39 100644 (file)
@@ -4552,7 +4552,7 @@ gfc_check_typebound_override (gfc_symtree* proc, gfc_symtree* old)
   /* If the overwritten procedure is GENERIC, this is an error.  */
   if (old->n.tb->is_generic)
     {
-      gfc_error ("Can't overwrite GENERIC %qs at %L",
+      gfc_error ("Cannot overwrite GENERIC %qs at %L",
                 old->name, &proc->n.tb->where);
       return false;
     }
index 4797b3d95cfec181f01c250621bea5504ee0b963..c21fbddd5fb4216a302ba8429b7020223a113cc0 100644 (file)
@@ -1157,7 +1157,7 @@ make_generic (const char *name, gfc_isym_id id, int standard ATTRIBUTE_UNUSED)
 
   g = gfc_find_function (name);
   if (g == NULL)
-    gfc_internal_error ("make_generic(): Can't find generic symbol %qs",
+    gfc_internal_error ("make_generic(): Cannot find generic symbol %qs",
                        name);
 
   gcc_assert (g->id == id);
@@ -4217,7 +4217,7 @@ keywords:
            gfc_error ("The argument list functions %%VAL, %%LOC or %%REF "
                       "are not allowed in this context at %L", where);
          else
-           gfc_error ("Can't find keyword named %qs in call to %qs at %L",
+           gfc_error ("Cannot find keyword named %qs in call to %qs at %L",
                       a->name, name, where);
          return false;
        }
@@ -5179,12 +5179,12 @@ gfc_convert_type_warn (gfc_expr *expr, gfc_typespec *ts, int eflag, int wflag)
 bad:
   if (eflag == 1)
     {
-      gfc_error ("Can't convert %s to %s at %L",
+      gfc_error ("Cannot convert %s to %s at %L",
                 gfc_typename (&from_ts), gfc_typename (ts), &expr->where);
       return false;
     }
 
-  gfc_internal_error ("Can't convert %qs to %qs at %L",
+  gfc_internal_error ("Cannot convert %qs to %qs at %L",
                      gfc_typename (&from_ts), gfc_typename (ts),
                      &expr->where);
   /* Not reached */
index 320b30c529acf6ef3815b5eefb97efc4762cfa63..0572b8e02c17aa1e465dd49562c0b0f51024bc8c 100644 (file)
@@ -6170,7 +6170,7 @@ dump_module (const char *name, int dump_flag)
   /* Write the module to the temporary file.  */
   module_fp = gzopen (filename_tmp, "w");
   if (module_fp == NULL)
-    gfc_fatal_error ("Can't open module file %qs for writing at %C: %s",
+    gfc_fatal_error ("Cannot open module file %qs for writing at %C: %s",
                     filename_tmp, xstrerror (errno));
 
   /* Use lbasename to ensure module files are reproducible regardless
@@ -6202,16 +6202,16 @@ dump_module (const char *name, int dump_flag)
     {
       /* Module file have changed, replace the old one.  */
       if (remove (filename) && errno != ENOENT)
-       gfc_fatal_error ("Can't delete module file %qs: %s", filename,
+       gfc_fatal_error ("Cannot delete module file %qs: %s", filename,
                         xstrerror (errno));
       if (rename (filename_tmp, filename))
-       gfc_fatal_error ("Can't rename module file %qs to %qs: %s",
+       gfc_fatal_error ("Cannot rename module file %qs to %qs: %s",
                         filename_tmp, filename, xstrerror (errno));
     }
   else
     {
       if (remove (filename_tmp))
-       gfc_fatal_error ("Can't delete temporary module file %qs: %s",
+       gfc_fatal_error ("Cannot delete temporary module file %qs: %s",
                         filename_tmp, xstrerror (errno));
     }
 }
@@ -7000,7 +7000,7 @@ gfc_use_module (gfc_use_list *module)
       module_fp = gzopen_intrinsic_module (filename);
 
       if (module_fp == NULL && module->intrinsic)
-       gfc_fatal_error ("Can't find an intrinsic module named %qs at %C",
+       gfc_fatal_error ("Cannot find an intrinsic module named %qs at %C",
                         module_name);
 
       /* Check for the IEEE modules, so we can mark their symbols
@@ -7028,7 +7028,7 @@ gfc_use_module (gfc_use_list *module)
     {
       if (gfc_state_stack->state != COMP_SUBMODULE
          && module->submodule_name == NULL)
-       gfc_fatal_error ("Can't open module file %qs for reading at %C: %s",
+       gfc_fatal_error ("Cannot open module file %qs for reading at %C: %s",
                         filename, xstrerror (errno));
       else
        gfc_fatal_error ("Module file %qs has not been generated, either "
@@ -7088,7 +7088,7 @@ gfc_use_module (gfc_use_list *module)
   for (p = gfc_state_stack; p; p = p->previous)
     if ((p->state == COMP_MODULE || p->state == COMP_SUBMODULE)
         && strcmp (p->sym->name, module_name) == 0)
-      gfc_fatal_error ("Can't USE the same %smodule we're building",
+      gfc_fatal_error ("Cannot USE the same %smodule we're building",
                       p->state == COMP_SUBMODULE ? "sub" : "");
 
   init_pi_tree ();
index 5bfb90c5decc7ec89376beb05896c8ed8fe4ef2a..e918372ef8503d7cf1795dd6f00714e69b582b2c 100644 (file)
@@ -2979,7 +2979,7 @@ gfc_convert_to_structure_constructor (gfc_expr *e, gfc_symbol *sym, gfc_expr **c
 
   if (!parent && sym->attr.abstract)
     {
-      gfc_error ("Can't construct ABSTRACT type %qs at %L",
+      gfc_error ("Cannot construct ABSTRACT type %qs at %L",
                 sym->name, &expr->where);
       goto cleanup;
     }
index 1cf9cbae964b87f85ccc0630ba969c63ebc8849b..6677deb3bdcafa435ae1dcba33fa44aa2cb341ea 100644 (file)
@@ -838,22 +838,22 @@ resolve_entries (gfc_namespace *ns)
              if (sym->attr.dimension)
                {
                  if (el == ns->entries)
-                   gfc_error ("FUNCTION result %s can't be an array in "
+                   gfc_error ("FUNCTION result %s cannot be an array in "
                               "FUNCTION %s at %L", sym->name,
                               ns->entries->sym->name, &sym->declared_at);
                  else
-                   gfc_error ("ENTRY result %s can't be an array in "
+                   gfc_error ("ENTRY result %s cannot be an array in "
                               "FUNCTION %s at %L", sym->name,
                               ns->entries->sym->name, &sym->declared_at);
                }
              else if (sym->attr.pointer)
                {
                  if (el == ns->entries)
-                   gfc_error ("FUNCTION result %s can't be a POINTER in "
+                   gfc_error ("FUNCTION result %s cannot be a POINTER in "
                               "FUNCTION %s at %L", sym->name,
                               ns->entries->sym->name, &sym->declared_at);
                  else
-                   gfc_error ("ENTRY result %s can't be a POINTER in "
+                   gfc_error ("ENTRY result %s cannot be a POINTER in "
                               "FUNCTION %s at %L", sym->name,
                               ns->entries->sym->name, &sym->declared_at);
                }
@@ -891,12 +891,12 @@ resolve_entries (gfc_namespace *ns)
                  if (sym)
                    {
                      if (el == ns->entries)
-                       gfc_error ("FUNCTION result %s can't be of type %s "
+                       gfc_error ("FUNCTION result %s cannot be of type %s "
                                   "in FUNCTION %s at %L", sym->name,
                                   gfc_typename (ts), ns->entries->sym->name,
                                   &sym->declared_at);
                      else
-                       gfc_error ("ENTRY result %s can't be of type %s "
+                       gfc_error ("ENTRY result %s cannot be of type %s "
                                   "in FUNCTION %s at %L", sym->name,
                                   gfc_typename (ts), ns->entries->sym->name,
                                   &sym->declared_at);
@@ -13115,7 +13115,7 @@ check_generic_tbp_ambiguity (gfc_tbp_generic* t1, gfc_tbp_generic* t2,
   if (sym1->attr.subroutine != sym2->attr.subroutine
       || sym1->attr.function != sym2->attr.function)
     {
-      gfc_error ("%qs and %qs can't be mixed FUNCTION/SUBROUTINE for"
+      gfc_error ("%qs and %qs cannot be mixed FUNCTION/SUBROUTINE for"
                 " GENERIC %qs at %L",
                 sym1->name, sym2->name, generic_name, &where);
       return false;
@@ -13250,7 +13250,7 @@ specific_found:
   /* If we attempt to "overwrite" a specific binding, this is an error.  */
   if (p->overridden && !p->overridden->is_generic)
     {
-      gfc_error ("GENERIC %qs at %L can't overwrite specific binding with"
+      gfc_error ("GENERIC %qs at %L cannot overwrite specific binding with"
                 " the same name", name, &p->where);
       return false;
     }
@@ -13306,7 +13306,7 @@ get_checked_tb_operator_target (gfc_tbp_generic* target, locus where)
   /* F08:C468. All operator bindings must have a passed-object dummy argument.  */
   if (target->specific->nopass)
     {
-      gfc_error ("Type-bound operator at %L can't be NOPASS", &where);
+      gfc_error ("Type-bound operator at %L cannot be NOPASS", &where);
       return NULL;
     }
 
index 08e4521a86dc8271242046328ea0b283bb40310f..eeba2ab2ae7141c5436414dcece33e6cbdc4c7ca 100644 (file)
@@ -2469,7 +2469,7 @@ load_file (const char *realfilename, const char *displayedname, bool initial)
 
       if (input == NULL)
        {
-         gfc_error_now ("Can't open file %qs", filename);
+         gfc_error_now ("Cannot open file %qs", filename);
          return false;
        }
     }
index 1a48e73a9f868e238713cce29cbb4e16c94fc122..9019c5589159391b4197226287680adb4ff6ae86 100644 (file)
@@ -926,8 +926,8 @@ gfc_conv_intrinsic_to_class (gfc_se *parmse, gfc_expr *e,
                }
              else
                {
-                 gfc_error ("Can't compute the length of the char array at %L.",
-                            &e->where);
+                 gfc_error ("Cannot compute the length of the char array "
+                            "at %L.", &e->where);
                }
            }
        }
index baba609ada11482dbe80991be8b91b421a14a19e..bf50d9d2cb67dbc30b1261ef874fe02744c0827f 100644 (file)
@@ -1,3 +1,27 @@
+2019-03-12  Martin Liska  <mliska@suse.cz>
+
+       * gfortran.dg/abstract_type_3.f03: Amend test-case scan
+       patterns.
+       * gfortran.dg/binding_label_tests_4.f03: Likewise.
+       * gfortran.dg/c_f_pointer_tests_6.f90: Likewise.
+       * gfortran.dg/c_funloc_tests_6.f90: Likewise.
+       * gfortran.dg/c_loc_tests_17.f90: Likewise.
+       * gfortran.dg/constructor_9.f90: Likewise.
+       * gfortran.dg/dec_structure_8.f90: Likewise.
+       * gfortran.dg/entry_4.f90: Likewise.
+       * gfortran.dg/init_char_with_nonchar_ctr.f90: Likewise.
+       * gfortran.dg/initialization_23.f90: Likewise.
+       * gfortran.dg/logical_assignment_1.f90: Likewise.
+       * gfortran.dg/pr80752.f90: Likewise.
+       * gfortran.dg/pr88116_1.f90: Likewise.
+       * gfortran.dg/pr88467.f90: Likewise.
+       * gfortran.dg/typebound_call_7.f03: Likewise.
+       * gfortran.dg/typebound_generic_1.f03: Likewise.
+       * gfortran.dg/typebound_operator_2.f03: Likewise.
+       * gfortran.dg/typebound_operator_4.f03: Likewise.
+       * gfortran.dg/typebound_proc_9.f03: Likewise.
+       * gfortran.dg/unlimited_polymorphic_2.f03: Likewise.
+
 2019-03-12  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/89363
index e7a9d9b63577952382753b5e51cf4a5cff58751b..542037397ab797501ef84d470d4aa59f9ddf7d7f 100644 (file)
@@ -41,7 +41,7 @@ CONTAINS
   SUBROUTINE sub (arg) ! { dg-error "is of the ABSTRACT type 'again_abst_t'" }
     IMPLICIT NONE
     TYPE(again_abst_t) :: arg
-    arg = again_abst_t () ! { dg-error "Can't construct ABSTRACT type 'again_abst_t'" }
+    arg = again_abst_t () ! { dg-error "Cannot construct ABSTRACT type 'again_abst_t'" }
   END SUBROUTINE sub
 
   SUBROUTINE impl ()
index 7214289c976847ed6f8b3fa46dbe78819b9b7483..f8c0f0460638ae8272693b32cd2f47e17978aa45 100644 (file)
@@ -18,6 +18,6 @@ end module B
 
 module C
 use A
-use B ! { dg-error "Can't open module file" }
+use B ! { dg-error "Cannot open module file" }
 end module C
 ! { dg-excess-errors "compilation terminated" }
index 6dc439770d4c22600bf6e3ed7015d5be8a5be88a..23ca88b0de059b46650eb7443327eae737fbabb7 100644 (file)
@@ -12,7 +12,7 @@ procedure(), pointer :: bar
 integer, pointer :: bari
 call c_f_procpointer(fptr,bar) ! { dg-error "Argument CPTR at .1. to C_F_PROCPOINTER shall have the type TYPE.C_FUNPTR." }
 call c_f_pointer(fun,bari) ! { dg-error "Argument CPTR at .1. to C_F_POINTER shall have the type TYPE.C_PTR." }
-fun = fptr ! { dg-error "Can't convert TYPE.c_ptr. to TYPE.c_funptr." }
+fun = fptr ! { dg-error "Cannot convert TYPE.c_ptr. to TYPE.c_funptr." }
 end
 
 subroutine test()
index 669a119246fa68bcb86bf2abd3485e13d43ba5aa..45d095566d134f16a607909b3bbf39d6859a2e0b 100644 (file)
@@ -20,8 +20,8 @@ procedure(sub), pointer :: fsub
 integer, external :: noCsub
 procedure(integer), pointer :: fint
 
-cp = c_funloc (sub) ! { dg-error "Can't convert TYPE.c_funptr. to TYPE.c_ptr." })
-cfp = c_loc (int)   ! { dg-error "Can't convert TYPE.c_ptr. to TYPE.c_funptr." }
+cp = c_funloc (sub) ! { dg-error "Cannot convert TYPE.c_funptr. to TYPE.c_ptr." })
+cfp = c_loc (int)   ! { dg-error "Cannot convert TYPE.c_ptr. to TYPE.c_funptr." }
 
 call c_f_pointer (cfp, int)     ! { dg-error "Argument CPTR at .1. to C_F_POINTER shall have the type TYPE.C_PTR." }
 call c_f_procpointer (cp, fsub) ! { dg-error "Argument CPTR at .1. to C_F_PROCPOINTER shall have the type TYPE.C_FUNPTR." }
index 5e4eb8affabdc3f02e699a858c227a752708c69d..2ed8307ddcfbbb96f098c817d7e7578f11a5524a 100644 (file)
@@ -10,5 +10,5 @@ program aaaa
   use iso_c_binding, only : c_loc
   integer, target :: i
   type(C_PTR) :: f_ptr ! { dg-error "being used before it is defined" }
-  f_ptr=c_loc(i)  ! { dg-error "Can't convert" }
+  f_ptr=c_loc(i)  ! { dg-error "Cannot convert" }
 end program aaaa
index a8e882138fd7bed3f345db88e4b04329871291ff..a61b63a0fe5644c78cbb491d5e30da9e2706d9d1 100644 (file)
@@ -15,6 +15,6 @@ module cf
 contains
   subroutine cfi()
     type(cfmde), pointer :: cfd
-    cfd=cfmde()                  ! { dg-error "Can't convert" }
+    cfd=cfmde()                  ! { dg-error "Cannot convert" }
   end subroutine
 end module
index f84bf15686419503cab9830eb92b9a4fbcbc720d..70faabfc0f5ff2cbbabe4313083b44d56d8aa50f 100644 (file)
@@ -11,7 +11,7 @@ structure /t1/              ! { dg-error "Type definition.*T1" }
   integer   b //            ! { dg-error "Empty old style initializer list" }
   integer   c /2*3/         ! { dg-error "Repeat spec invalid in scalar" }
   integer   d /1,2,3/       ! { dg-error "End of scalar initializer expected" }
-  integer   e /"HI"/        ! { dg-error "Can't convert" }
+  integer   e /"HI"/        ! { dg-error "Cannot convert" }
   integer   f(as) /4*9/     ! { dg-error "Too many elements" }
   integer   g(3) /1,3/      ! { dg-error "Not enough elements" }
   integer   h(3) /1,3,5,7/  ! { dg-error "Too many elements" }
index 9a3b89a620eaa7228a3510d3ff6658a11310834e..22d411b602205da7ce6184a9637f1470cb5a4b8d 100644 (file)
@@ -1,5 +1,5 @@
 ! { dg-do compile { target i?86-*-* x86_64-*-* } }
-function f1 () result (r)      ! { dg-error "can't be a POINTER" }
+function f1 () result (r)      ! { dg-error "cannot be a POINTER" }
 integer, pointer :: r
 real e1
 allocate (r)
@@ -11,14 +11,14 @@ entry e1a ()
 e1a = 13
 end function
 function f2 ()
-integer, dimension (2, 7, 6) :: e2   ! { dg-error "can't be an array" }
+integer, dimension (2, 7, 6) :: e2   ! { dg-error "cannot be an array" }
 f2 = 6
 return
 entry e2 ()
 e2 (:, :, :) = 2
 end function
-integer(kind=8) function f3 ()      ! { dg-error "can't be of type" }
-complex(kind=8) e3              ! { dg-error "can't be of type" }
+integer(kind=8) function f3 ()      ! { dg-error "cannot be of type" }
+complex(kind=8) e3              ! { dg-error "cannot be of type" }
 f3 = 1
 return
 entry e3 ()
index b84a9a83c5016de52822218c6348e79537069d35..301118266456545b87db557fb58cbaffbd9b8e5e 100644 (file)
@@ -7,7 +7,7 @@ subroutine s1
       integer :: n = 0
    end type
    type t2
-      character :: c = t() ! { dg-error "Can't convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
+      character :: c = t() ! { dg-error "Cannot convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
    end type
 end subroutine
 
@@ -15,20 +15,20 @@ subroutine s2
    type t
    end type
    type t2
-      character :: c(1) = [t()] ! { dg-error "Can't convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
+      character :: c(1) = [t()] ! { dg-error "Cannot convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
    end type
 end subroutine
 
 subroutine s3
    type t
       integer :: a = 1
-      character :: c = t() ! { dg-error "Can't convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
+      character :: c = t() ! { dg-error "Cannot convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
    end type
 end subroutine
 
 subroutine s4
    type t
       integer, allocatable :: a
-      character :: c = t() ! { dg-error "Can't convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
+      character :: c = t() ! { dg-error "Cannot convert TYPE\\(t\\) to CHARACTER\\(1\\)" }
    end type
 end subroutine
index 1931bca96b4ba8432c34449c409cff4264967d69..a4683a3ddd2fce0b26a465c9d50a630fe13f11e6 100644 (file)
@@ -9,6 +9,6 @@
       TYPE :: one_parameter
         CHARACTER :: name
       END TYPE one_parameter
-      CHARACTER, PARAMETER :: the_alpha = one_parameter('c') ! { dg-error "Can't convert TYPE" }
+      CHARACTER, PARAMETER :: the_alpha = one_parameter('c') ! { dg-error "Cannot convert TYPE" }
       CHARACTER, PARAMETER :: the_beta = (/one_parameter('c')/) ! { dg-error "Incompatible ranks" }
     END MODULE cdf_aux_mod
index c22898051183e9d0701e309916a5d1a656711ca8..e3c14f5b3929ea19d88d9f53f96adf58f8f91bee 100644 (file)
@@ -5,6 +5,6 @@
 program emptyarray5
   implicit none
   real a(0)
-  a = [logical::] ! { dg-error "Can't convert LOGICAL" }
+  a = [logical::] ! { dg-error "Cannot convert LOGICAL" }
   print *,size(a)
 end program emptyarray5
index 00a4b33d29ad7370b03632e2a0689545f5ff58af..710065ce4c9d928373204719bc3db5ec3bee7cb9 100644 (file)
@@ -7,7 +7,7 @@ module exchange_utils
   integer, parameter, public :: knd = 8
 
   type, private :: a
-     logical :: add_vs98 = 0.0_knd ! { dg-error "Can't convert" }
+     logical :: add_vs98 = 0.0_knd ! { dg-error "Cannot convert" }
   end type a
 
   type, private :: x_param_t
index a64c818671ec62803997ce29339036c225a80567..67c6a2603400d14965060a0ba9119dcc6434e9cb 100644 (file)
@@ -1,4 +1,4 @@
 ! { dg-do compile }
 program p
-   print *, [integer :: 1, [integer(8) :: 2, ['3']]] ! { dg-error "Can't convert" }
+   print *, [integer :: 1, [integer(8) :: 2, ['3']]] ! { dg-error "Cannot convert" }
 end
index 6a9666284a3150204dcbeda970f97f1613feba67..5424c06b8849ddeeb713a3e3b30d3dae004cfb4d 100644 (file)
@@ -1,4 +1,4 @@
 ! { dg-do compile }
 program foo
-   print *, [integer :: 1, [integer(8) :: 2, '3']] ! { dg-error "Can't convert" }
+   print *, [integer :: 1, [integer(8) :: 2, '3']] ! { dg-error "Cannot convert" }
 end program foo
index 7e7209c198a934e829b116c9a1b4386f800a2afe..81d8162528ba7f85790458d05e3138e49aa746e8 100644 (file)
@@ -38,7 +38,7 @@ CONTAINS
     REAL :: resArr(3), resSmall(2)
 
     res = sys%solve1 () ! { dg-error "Incompatible rank" }
-    res = sys%solve2 () ! { dg-error "Can't convert" }
+    res = sys%solve2 () ! { dg-error "Cannot convert" }
     resSmall = sys%solve1 () ! { dg-error "Different shape" }
 
     res = sys%solve3 ()
index f9c471ae96aff44a98f9bab355c040439116fedc..dd54e66881b619f96dc0964821433fb7529c1324 100644 (file)
@@ -55,10 +55,10 @@ MODULE m
   CONTAINS
     GENERIC :: gen2 => p1a ! { dg-error "are ambiguous" }
     GENERIC :: gen2 => p3
-    GENERIC :: p1 => p2 ! { dg-error "can't overwrite specific" }
+    GENERIC :: p1 => p2 ! { dg-error "cannot overwrite specific" }
     GENERIC :: gensub => p2 ! { dg-error "mixed FUNCTION/SUBROUTINE" }
 
-    PROCEDURE, NOPASS :: gen1 => intf1 ! { dg-error "Can't overwrite GENERIC" }
+    PROCEDURE, NOPASS :: gen1 => intf1 ! { dg-error "Cannot overwrite GENERIC" }
   END TYPE t
 
 CONTAINS
index 67b6b5e0326fe1e42cb0f52b21078aec2ebdd9c8..bdef47d4087c2194d12305886ace10878015da5c 100644 (file)
@@ -31,8 +31,8 @@ MODULE m
     GENERIC :: OPERATOR(.UNARY.) => onearg_alt
     GENERIC, PRIVATE :: OPERATOR(.UNARY.) => onearg_alt2 ! { dg-error "must have the same access" }
 
-    GENERIC :: OPERATOR(.UNARYPRIME.) => nopassed ! { dg-error "can't be NOPASS" }
-    GENERIC :: OPERATOR(-) => nopassed ! { dg-error "can't be NOPASS" }
+    GENERIC :: OPERATOR(.UNARYPRIME.) => nopassed ! { dg-error "cannot be NOPASS" }
+    GENERIC :: OPERATOR(-) => nopassed ! { dg-error "cannot be NOPASS" }
   END TYPE t
 
 CONTAINS
index cd0e8f602ae3608e43b57b1f10606b96b849d617..3dc3cae3156197216d314acc1658f36f61d5c664 100644 (file)
@@ -54,7 +54,7 @@ CONTAINS
 
   SUBROUTINE in_module ()
     TYPE(myint) :: x
-    x = 0 ! { dg-bogus "Can't convert" }
+    x = 0 ! { dg-bogus "Cannot convert" }
     x = x + 42 ! { dg-bogus "Operands of" }
     x = x .PLUS. 5 ! { dg-bogus "Unknown operator" }
   END SUBROUTINE in_module
@@ -83,7 +83,7 @@ PROGRAM main
   IMPLICIT NONE
   TYPE(myint) :: x
 
-  x = 0 ! { dg-error "Can't convert" }
+  x = 0 ! { dg-error "Cannot convert" }
   x = x + 42 ! { dg-error "binary intrinsic numeric operator" }
   x = x .PLUS. 5 ! { dg-error "Unknown operator" }
 END PROGRAM main
index a6ca35bb010a19a5dcfddf61f2a7fb4da16540fb..e3dc7863f01fc62b3e5eed413cbc572a8ba5cc75 100644 (file)
@@ -20,7 +20,7 @@ MODULE testmod
   CONTAINS
     PROCEDURE, DEFERRED :: p2 ! { dg-error "Interface must be specified" }
     PROCEDURE(intf), NOPASS :: p3 ! { dg-error "should be declared DEFERRED" }
-    PROCEDURE(intf), DEFERRED, NON_OVERRIDABLE :: p4 ! { dg-error "can't both" }
+    PROCEDURE(intf), DEFERRED, NON_OVERRIDABLE :: p4 ! { dg-error "cannot both" }
     PROCEDURE(unknown), DEFERRED :: p5 ! { dg-error "has no IMPLICIT|must be explicit" }
     PROCEDURE(intf), DEFERRED, DEFERRED :: p6 ! { dg-error "Duplicate DEFERRED" }
     PROCEDURE(intf), DEFERRED :: p6 => proc ! { dg-error "is invalid for DEFERRED" }
index 13d7f8e466a548ad063264bbc801f5d9378e2fe9..ee4523dd696eb596abf4701045cb5d4b5c2a9045 100644 (file)
@@ -20,7 +20,7 @@
 ! F2008: C4106\r
   u2 = [u1] ! { dg-error "shall not be unlimited polymorphic" }\r
 \r
-  i = u2 ! { dg-error "Can\\'t convert CLASS\\(\\*\\)" }\r
+  i = u2 ! { dg-error "Cannot convert CLASS\\(\\*\\)" }\r
 \r
 ! Repeats same_type_as_1.f03 for unlimited polymorphic u2\r
   flag = same_type_as (i, u2) ! { dg-error "cannot be of type INTEGER" }\r