This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52988] std::async not executed on function returning nullptr_t
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jun 2012 20:37:30 +0000
- Subject: [Bug c++/52988] std::async not executed on function returning nullptr_t
- Auto-submitted: auto-generated
- References: <bug-52988-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52988
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-25 20:37:30 UTC ---
Author: jason
Date: Mon Jun 25 20:37:25 2012
New Revision: 188954
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188954
Log:
PR c++/52988
* typeck.c (decay_conversion): Don't discard side-effects from
expressions of nullptr_t.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/typeck.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog