This is the mail archive of the gcc-bugs@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]

[Bug fortran/46705] Spurious "Missing '&' in continued character constant" warning occurs twice


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46705

--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2010-12-11 16:02:51 UTC ---
This appears to resolve the double warning issue.  Regression testing now.

Index: scanner.c
===================================================================
--- scanner.c    (revision 167624)
+++ scanner.c    (working copy)
@@ -1147,7 +1147,7 @@ restart:
       if (in_string)
         {
           if (gfc_option.warn_ampersand)
-        gfc_warning_now ("Missing '&' in continued character "
+        gfc_warning ("Missing '&' in continued character "
                  "constant at %C");
           gfc_current_locus.nextc--;
         }


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