.: * c-lex.c (c_lex): Remove # from %o diagnostic formatting.
testsuite:
* g++.old-deja/g++.other/lex1.C: New test.
From-SVN: r41588
+2001-04-26 Nathan Sidwell <nathan@codesourcery.com>
+
+ * c-lex.c (c_lex): Remove # from %o diagnostic formatting.
+
2001-04-26 Jakub Jelinek <jakub@redhat.com>
* integrate.c (expand_inline_function): Check for error_mark_node
if (ISGRAPH (tok.val.c))
error ("stray '%c' in program", tok.val.c);
else
- error ("stray '\\%#o' in program", tok.val.c);
+ error ("stray '\\%o' in program", tok.val.c);
goto retry;
case CPP_NAME:
+2001-04-26 Nathan Sidwell <nathan@codesourcery.com>
+
+ * g++.old-deja/g++.other/lex1.C: New test.
+
2001-04-26 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/noncompile/20010425-1.c: New test.
--- /dev/null
+// Build don't link:
+//
+// Copyright (C) 2001 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 26 April 2001 <nathan@codesourcery.com>
+
+// Bug 2510. We ICEd when a bogus char was present.
+
+void foo ()
+{
+ // there is a ctrl-h on the next line
+ \b // ERROR - stray char
+}