[Bug fortran/46705] Spurious "Missing '&' in continued character constant" warning occurs twice
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 11 16:02:00 GMT 2010
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--;
}
More information about the Gcc-bugs
mailing list