[llvm-bugs] [Bug 41392] New: clang crashes when the offset asm instruction uses a function pointer as argument

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 5 05:40:36 PDT 2019


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

            Bug ID: 41392
           Summary: clang crashes when the offset asm instruction uses a
                    function pointer as argument
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zahira.ammarguellat at intel.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

This simple test case:

void (*foo)();

void goo()
{
  {
    __asm push offset foo
  };
}

crashes compiled as C or C++. With and without -m32 option.

https://gcc.godbolt.org/z/PLTAJx

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190405/f0261213/attachment.html>


More information about the llvm-bugs mailing list