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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 18 06:10:33 PDT 2013


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

reid.kleckner at gmail.com <reid.kleckner at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #3 from reid.kleckner at gmail.com <reid.kleckner at gmail.com> ---
I'm sorry, I should try reading the diagnostic.  That's about returning bool. 
Ignore my comment.

The derived foo method does not get the noreturn attribute and we don't warn
about it, but we do assume that all implementations of foo are noreturn at the
call site.

Clang should probably be changed to either not assume that or warn on method
overrides that aren't also noreturn.

-- 
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/4a2999a6/attachment.html>


More information about the llvm-bugs mailing list