Skip to content
  • Virgile Prevosto's avatar
    [kernel] fix ast-diff on code with forward-decl of struct · c028c472
    Virgile Prevosto authored
    In presence of the following pattern of code:
    
    ```c
    struct S;
    enum { t = 1 };
    struct S { char[t]; };
    ```
    
    -ast-diff will attempt to compare the use of `t` in the field declaration
    before having visited the `enum` definition. Thus, we can't rely on an enumitem
    being present in the correspondance table when looking for a correspondance.
    c028c472