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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to