From: Paul Eggert Date: Tue, 1 Mar 2005 00:41:33 +0000 (+0000) Subject: (Semantic Tokens): Fix scoping problem in X-Git-Tag: BISON-2_1~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a4f411faac41469beb2004a5d49c19812a586ad;p=platform%2Fupstream%2Fbison.git (Semantic Tokens): Fix scoping problem in example, reported by Derek M Jones. Also, make the example even more outrageous, to better illustrate how bad the problem is. --- diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 9e89961..4b0aeb3 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -5784,9 +5784,13 @@ redeclare a typedef name provided an explicit type has been specified earlier: @example -typedef int foo, bar, lose; -static foo (bar); /* @r{redeclare @code{bar} as static variable} */ -static int foo (lose); /* @r{redeclare @code{foo} as function} */ +typedef int foo, bar; +int baz (void) +@{ + static bar (bar); /* @r{redeclare @code{bar} as static variable} */ + extern foo foo (foo); /* @r{redeclare @code{foo} as function} */ + return foo (bar); +@} @end example Unfortunately, the name being declared is separated from the declaration