[LLVMbugs] [Bug 12683] incorrect handling of non-type template parameter packs
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 22 16:17:59 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=12683
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |FIXED
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This works fine with Clang trunk. -DFOO1 succeeds, -DFOO2 gives
<stdin>:18:9: error: no matching function for call to 'foo'
foo<true>();
^~~~~~~~~
<stdin>:11:47: note: candidate template ignored: disabled by 'enable_if' [with
Bs = <true>]
template <bool... Bs, typename std::enable_if<(sizeof...(Bs) == 2), bool>::type
= false>
^
and -DFOO1 -DFOO2 succeeds.
--
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/20140722/ced7e183/attachment.html>
More information about the llvm-bugs
mailing list