Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903593

jextract fails on unnamed union with long of specified size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • None
    • 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; };
      };
      ```

            mcimadamore Maurizio Cimadamore
            jbechberger Johannes Bechberger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: