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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED
                 CC|                            |richard-l...@metafoo.co.uk

--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
This is a bug in your code. There is no guarantee that <iostream> is
initialized before the global initializer for Bar<false>::dummy runs, and it
just so happens that Bar<false>::dummy is initialized before std::cout is
initialized in this case, resulting in your logging output crashing.

*** This bug has been marked as a duplicate of bug 38914 ***

-- 
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