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

jextract crashes when C11 keyword _Static_Assert is used in a header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • generic
    • generic

      jextract fails when C11 keyword _Static_Assert is used in a header.


      File: test.h
      _Static_assert(1 == 1, "what??");

      $ jextract test.h
      _Static_assert(1 == 1, "what??");

      When assert.h is included in a header and static_assert is used (which is a macro expands to _Static_assert when C language is used).

      File: test2.h

      #include <assert.h>
        
      static_assert(1 == 1, "what??");

      jextract test2.h also fails with

      Invalid Cursor kind value: 602

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: