jextract fails on unnamed union with long of specified size

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      Running jextract on the following fails:

      ```
      struct {
      union { long sk; long :64; };
      };
      ```

      It prints `InvalidFieldName. segment: org.openjdk.jextract.clang.Type@bb5e20ff, fieldName: `
      without any indication of the error location.

      jextract is fine with the above example if we either add a property name for the union

      ```
      struct {
      union { long sk; long :64; } value;
      };
      ```

      or if we remove the width specification of the long:

      ```
      struct {
      union { long sk; long; };
      };
      ```

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Johannes Bechberger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: