Commit 5677efb0 by Nathan Sidwell Committed by Nathan Sidwell

c-lex.c (c_lex): Remove # from %o diagnostic formatting.

.:	* c-lex.c (c_lex): Remove # from %o diagnostic formatting.
testsuite:
	* g++.old-deja/g++.other/lex1.C: New test.

From-SVN: r41588
parent 3b07c79b
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
......
......@@ -993,7 +993,7 @@ c_lex (value)
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.
......
// 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
 // ERROR - stray char
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment