| ... | @@ -228,6 +228,7 @@ fn prepopulateGlobalNameTable(c: *Context) !void { | ... | @@ -228,6 +228,7 @@ fn prepopulateGlobalNameTable(c: *Context) !void { |
| 228 | const decl_name = c.tree.tokSlice(data.decl.name); | 228 | const decl_name = c.tree.tokSlice(data.decl.name); |
| 229 | try c.global_names.put(c.gpa, decl_name, {}); | 229 | try c.global_names.put(c.gpa, decl_name, {}); |
| 230 | }, | 230 | }, |
| | 231 | .static_assert => {}, |
| 231 | else => unreachable, | 232 | else => unreachable, |
| 232 | } | 233 | } |
| 233 | } | 234 | } |
| ... | @@ -305,6 +306,7 @@ fn transDecl(c: *Context, scope: *Scope, decl: NodeIndex) !void { | ... | @@ -305,6 +306,7 @@ fn transDecl(c: *Context, scope: *Scope, decl: NodeIndex) !void { |
| 305 | => { | 306 | => { |
| 306 | try transVarDecl(c, decl, null); | 307 | try transVarDecl(c, decl, null); |
| 307 | }, | 308 | }, |
| | 309 | .static_assert => try warn(c, &c.global_scope.base, 0, "ignoring _Static_assert declaration", .{}), |
| 308 | else => unreachable, | 310 | else => unreachable, |
| 309 | } | 311 | } |
| 310 | } | 312 | } |