typeck.c (build_binary_op_nodefault): Warn on use of NULL in arithmetic.
authorMark Mitchell <mark@markmitchell.com>
Wed, 19 Aug 1998 18:48:58 +0000 (18:48 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 19 Aug 1998 18:48:58 +0000 (18:48 +0000)
commite0f9a8bc5052bfceb3e52ccae774024c3d071f20
tree7407d7664089d119c0f773a50038ffdfd571132a
parent893779cc020424b6555cb851fd2659597174461a
typeck.c (build_binary_op_nodefault): Warn on use of NULL in arithmetic.

* typeck.c (build_binary_op_nodefault): Warn on use of NULL in
arithmetic.
* except.c (build_throw): Warn when NULL is thrown, even with
-ansi.  Use ansi_null_node, rather than integer_zero_node, in the
thrown expression.

From-SVN: r21863
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.other/null1.C