Core 903
commitfcfa0d6a2c28d6ddf68fa4d74fdca3379b23dd62
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Oct 2016 08:10:43 +0000 (3 08:10 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Oct 2016 08:10:43 +0000 (3 08:10 +0000)
treee53987fa3bca08d04479e37deec4b791304c6bc2
parent255beb0710bdeba105661057d6ba7a0cc9cb23dd
Core 903
* typeck.c (cp_build_binary_op): Pass original operands to
null_ptr_cst_p, not those after the default conversions.

* g++.dg/cpp0x/nullptr37.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240707 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr37.C [new file with mode: 0644]