[LLVMbugs] [Bug 20174] Unsafe perfect forwarding
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 8 22:21:15 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20174
Akim Demaille <akim.demaille at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #3 from Akim Demaille <akim.demaille at gmail.com> ---
Hi Richard,
Thanks for your detailed comments. So it all boils down to the behavior of
std::tuple's constructor, which in the case of libc++, does not require the
same number of effective arguments as the size of the tuple.
#include <tuple>
int main()
{
std::tuple<int, int> t1(1);
}
I don't have the final C++11 standard, just a copy of the last draft, but
unless it changed quite late, I don't see how this is valid. 20.4.2.1 line 8
states that both parameter packs must have the same size.
I agree then that this would be rather a libc++ issue. Do you agree?
--
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/20140709/e4b58d55/attachment.html>
More information about the llvm-bugs
mailing list