[llvm-bugs] [Bug 24648] "inline" use is incoherent in clang++
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 3 17:29:20 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24648
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #9 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Your code contains a violation of C++'s one definition rule. See
https://en.wikipedia.org/wiki/One_Definition_Rule for more information.
[I've tried this with a GCC 5.1 built from SVN, and I still see the same result
as Clang at -O0. But that's not relevant -- your code is wrong, even if by
chance it does what you expect with some flags on some version of some
compiler. This is not a compiler bug.]
--
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/20150904/9989d166/attachment.html>
More information about the llvm-bugs
mailing list