This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42819] [C++0x] std::async fails to compile with simple tests, including N3000 example
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2010 18:10:29 -0000
- Subject: [Bug libstdc++/42819] [C++0x] std::async fails to compile with simple tests, including N3000 example
- References: <bug-42819-6477@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from paolo dot carlini at oracle dot com 2010-01-21 18:10 -------
Jon, I have to go now, I was testing the obvious patch but apparently we have
more of the same issue with std::bind, besides that in async(_Fn&&,
_Args&&...): the existing 30_threads/async tests are failing at compile time:
if you can give me an hint I can asjust the patch I have already and commit it
in, say, 5 hours from now. I think the problem now comes from the user
(testcase) code itself: there is an "ambiguity" between the two async: shall we
maybe use an enable_if on the first argument of async and check if the type is
launch?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42819