Fix enumeration constants' scope beginning
commitc14911db43a7229ba7a28ac23f4d1e569a2586ab
authorAl Viro <viro@ftp.linux.org.uk>
Mon, 9 Mar 2009 23:32:16 +0000 (9 23:32 +0000)
committerChristopher Li <sparse@chrisli.org>
Sat, 18 Jul 2009 05:30:09 +0000 (18 05:30 +0000)
treecdc075ecc76deb111f4d767c74aea8e1b3c5b782
parent1aae3184cb1dbf95e1e07b4ac85cd3c70784fd32
Fix enumeration constants' scope beginning

It starts after the end of enumerator; i.e. if we have
enum {
...
Foo = expression,
...
};
the scope of Foo starts only after the end of expression.
Rationale: 6.2.1p7.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
parse.c
validation/enum_scope.c [new file with mode: 0644]