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

            Bug ID: 27255
           Summary: NULL-based pointer arithmetic generates ud2
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangb...@nondot.org
          Reporter: s...@list.ru
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 16178
  --> https://llvm.org/bugs/attachment.cgi?id=16178&action=edit
a test case

Attached is the test-case.

$ gcc -m32 -Wall -O2 -o null null.c
$ ./null
1

$ clang -m32 -Wall -O2 -o null null.c
$ ./null
Illegal instruction (core dumped)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to