[LLVMbugs] [Bug 18180] Compilation error with boost::optional (from Boost 1.55)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 9 00:25:44 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18180
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Richard Smith <richard-llvm at metafoo.co.uk> ---
OK, I see what's happening -- in Clang 3.3 and GCC 4.8, 'false' is being
treated as a null pointer constant. boost::optional implicitly converts to an
"unspecified-bool-type" that happens to be a pointer-to-member type, and thus
can be compared against a null pointer constant via the built-in
operator!=(pointer-to-member, pointer-to-member) overload.
In C++11 onwards, 'false' isn't a null pointer constant any more, so this
comparison is no longer valid. Clang 3.3 and GCC 4.8 don't implement that rule;
Clang 3.4 does.
=> INVALID
--
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/20131209/0b33e54e/attachment.html>
More information about the llvm-bugs
mailing list