mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
(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:
@@ -5784,9 +5784,13 @@ redeclare a typedef name provided an explicit type has been specified
|
|||||||
earlier:
|
earlier:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
typedef int foo, bar, lose;
|
typedef int foo, bar;
|
||||||
static foo (bar); /* @r{redeclare @code{bar} as static variable} */
|
int baz (void)
|
||||||
static int foo (lose); /* @r{redeclare @code{foo} as function} */
|
@{
|
||||||
|
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
|
@end example
|
||||||
|
|
||||||
Unfortunately, the name being declared is separated from the declaration
|
Unfortunately, the name being declared is separated from the declaration
|
||||||
|
|||||||
Reference in New Issue
Block a user