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

Richard Smith <richard-l...@metafoo.co.uk> changed:

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

--- Comment #9 from Richard Smith <richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to