fix PR6216

llvm-svn: 95185
This commit is contained in:
Chris Lattner 2010-02-03 01:45:03 +00:00
parent aaa1db66a1
commit 35af0ab3eb
2 changed files with 6 additions and 0 deletions

View File

@ -942,6 +942,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind,
case tok::annot_cxxscope: // struct foo {...} a:: b;
case tok::annot_typename: // struct foo {...} a ::b;
case tok::annot_template_id: // struct foo {...} a<int> ::b;
case tok::comma: // __builtin_offsetof(struct foo{...} ,
// Storage-class specifiers
case tok::kw_static: // struct foo {...} static x;
case tok::kw_extern: // struct foo {...} extern x;

View File

@ -75,3 +75,8 @@ struct test9 {
// PR6208
struct test10 { int a; } static test10x;
struct test11 { int a; } const test11x;
// PR6216
void test12() {
(void)__builtin_offsetof(struct { char c; int i; }, i);
}