Skip to content

Commit e36524a

Browse files
committed
Require semicolon after static_assert_declaration in declaration
Static asserts always end with one.
1 parent 00d7725 commit e36524a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontc/cparser.mly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ declaration: /* ISO 6.7.*/
998998
{ doDeclaration (joinLoc (snd $1) $3) (fst $1) $2 }
999999
| decl_spec_list_no_attr_only SEMICOLON
10001000
{ doDeclaration (joinLoc (snd $1) $2) (fst $1) [] }
1001-
| static_assert_declaration { let (e, m, loc) = $1 in STATIC_ASSERT (e, m, loc) }
1001+
| static_assert_declaration SEMICOLON { let (e, m, loc) = $1 in STATIC_ASSERT (e, m, loc) }
10021002
;
10031003

10041004
static_assert_declaration:

0 commit comments

Comments
 (0)