https://bugs.llvm.org/show_bug.cgi?id=50091

            Bug ID: 50091
           Summary: __builtin_dump_struct crashed on struct with bitfields
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Created attachment 24795
  --> https://bugs.llvm.org/attachment.cgi?id=24795&action=edit
clang created preprocessed source file and script

The following code makes clang crash. It happened on clang8, clang11 and
clang12.

typedef union {
        struct {
                int a : 2;
                int b : 2;
        };
        int asInt;
} MyBitFields;

MyBitFields r;

int main() {
        __builtin_dump_struct(&r, &printf);
        return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to