Core 903
authorMarek Polacek <polacek@redhat.com>
Mon, 3 Oct 2016 08:10:43 +0000 (08:10 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 3 Oct 2016 08:10:43 +0000 (08:10 +0000)
commitf41f1ceba6d40fe50f49dcb1b45af37997cb7c20
treee53987fa3bca08d04479e37deec4b791304c6bc2
parent1633d3b91af987aefd53b64cd4071923e1f45502
Core 903

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.

From-SVN: r240707
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr37.C [new file with mode: 0644]