[LLVMbugs] [Bug 15450] Weird behaviour with enable_if and sizeof

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 5 11:39:39 PST 2013


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Right, conversion from an integer other than 0 or 1 to bool is a narrowing
conversion, narrowing conversions are not permitted in converted constant
expressions, and a non-type template argument must be a converted constant

So you get a substitution failure in the template specialization.

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/20130305/7d1bb076/attachment.html>

More information about the llvm-bugs mailing list