[llvm-bugs] [Bug 29004] Inlined function name clash resolves silently and arbitrarily

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 16 10:43:17 PDT 2016


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

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |INVALID

--- Comment #1 from Reid Kleckner <rnk at google.com> ---
You are describing what happens when you have an ODR violation. ODR violations
invoke undefined behavior. This is also a property of the linker, not the
compiler, so this isn't a bug in clang. Closing as "working as intended".

We would like to build an ODR violation detector as part of LLD, eventually.
ASan has a mini-runtime ODR violation detector, but I think it's only for
global variables.

-- 
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/20160816/46c198db/attachment.html>


More information about the llvm-bugs mailing list