This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, Fortran, committed] s/_/-/ in error message about -fallow_leading_underscore


I committed the attached patch as obvious (Rev. 133678).

I encountered the misspelling of -fallow-leading-underscore when I tried to debug the following failure, which I still do not understand.

selected_real_kind.inc:3.14:
Included at /projects/tob/gcc/libgfortran/intrinsics/selected_real_kind.f90:35:
real_info (4, precision(0.0_4), range(0.0_4)), &
1
Internal Error at (1):
Option -fallow_leading_underscore is for use only by gfortran developers, and should not be used for implicitly typed variables



Tobias


Index: symbol.c
===================================================================
--- symbol.c    (Revision 133677)
+++ symbol.c    (Arbeitskopie)
@@ -212,7 +212,7 @@ gfc_get_default_type (gfc_symbol *sym, g
  letter = sym->name[0];

  if (gfc_option.flag_allow_leading_underscore && letter == '_')
-    gfc_internal_error ("Option -fallow_leading_underscore is for use only by "
+    gfc_internal_error ("Option -fallow-leading-underscore is for use only by "
                       "gfortran developers, and should not be used for "
                       "implicitly typed variables");

Index: ChangeLog
===================================================================
--- ChangeLog   (Revision 133677)
+++ ChangeLog   (Arbeitskopie)
@@ -1,3 +1,8 @@
+2008-03-28  Tobias Burnus  <burnus@net-b.de>
+
+       * symbol.c (gfc_get_default_type): Fix error message; option
+       -fallow_leading_underscore should be -fallow-leading-underscore
+
2008-03-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/35724



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]