OSDN Git Service

/cp
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jul 2013 05:53:45 +0000 (05:53 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jul 2013 05:53:45 +0000 (05:53 +0000)
commitf6911989a52516fa176a1630b571556bc8c07e0b
tree35b5443f9429cdf966bcd9b0a4200adcf010439a
parent861ccc9f873b2f20b45f3e93f8896153894d5974
/cp
2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54170
* cvt.c (cp_convert_to_pointer): Don't discard side-effects from
expressions of nullptr_t.
* typeck.c (build_ptrmemfunc): Likewise.

/testsuite
2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54170
* g++.dg/cpp0x/lambda/lambda-nullptr.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@200863 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nullptr.C [new file with mode: 0644]