Skip to content

Commit 970c5aa

Browse files
Add comments we missed to sync to GitHub
1 parent 6903cff commit 970c5aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cparser/Elab.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,7 @@ and elab_field_group env = function
985985
elab_name_group loc env (spec, List.map fst fieldlist) in
986986

987987
if sto <> Storage_default then
988+
(* This should actually never be triggered, catched by pre-parser *)
988989
error loc "non-default storage in struct or union";
989990
if fieldlist = [] then
990991
(* This should actually never be triggered, empty structs are captured earlier *)
@@ -2853,6 +2854,7 @@ let elab_definition (for_loop: bool) (local: bool) (nonstatic_inline: bool)
28532854
(* "int f(int x) { ... }" *)
28542855
(* "int f(x, y) double y; { ... }" *)
28552856
| FUNDEF(spec, name, defs, body, loc) ->
2857+
(* This should actually never be triggered, catched by pre-parser *)
28562858
if local then error loc "function definition is not allowed here";
28572859
let env1 = elab_fundef env spec name defs body loc in
28582860
([], env1)

0 commit comments

Comments
 (0)