(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.
This commit is contained in:
Paul Eggert
2005-03-01 00:41:33 +00:00
parent 4c04c52a9d
commit 3a4f411faa

View File

@@ -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