Thanks for that report. I installed this patch (resisting the
temptation to write the valid declaration "extern foo foo (foo foo);" :-).
2005-02-28 Paul Eggert <[EMAIL PROTECTED]>
* doc/bison.texinfo (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.
--- bison.texinfo.~1.141.~ 2005-02-24 09:17:28 -0800
+++ bison.texinfo 2005-02-28 16:39:10 -0800
@@ -5784,9 +5784,13 @@ redeclare a typedef name provided an exp
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)
[EMAIL PROTECTED]
+ static bar (bar); /* @r{redeclare @code{bar} as static variable} */
+ extern foo foo (foo); /* @r{redeclare @code{foo} as function} */
+ return foo (bar);
[EMAIL PROTECTED]
@end example
Unfortunately, the name being declared is separated from the declaration