[LLVMbugs] [Bug 16649] New: __attribute__((noreturn)) corrupts instruction pointer on method call

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 18 02:36:02 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16649

            Bug ID: 16649
           Summary: __attribute__((noreturn)) corrupts instruction pointer
                    on method call
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: aboeckma at mpi-bremen.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10894
  --> http://llvm.org/bugs/attachment.cgi?id=10894&action=edit
Minimal example to reproduce the bug

Steps to reproduce:
Download the attached minimal example and compile with:
$ clang++ -c -g -MMD -MP -MF main.o.d -o main.o main.cpp
$ clang++ -o test main.o

Execute the executable.

Expected output:
foo
3

Actual output:
foo
4

If__attribute__((noreturn)) is removed the output is as expected.

-- 
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/20130718/0922ff0e/attachment.html>


More information about the llvm-bugs mailing list