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: unassignedclangb...@nondot.org
          Reporter: zahira.ammarguel...@intel.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to