cp-tree.h (ansi_null_node): New variable.
authorMark Mitchell <mark@markmitchell.com>
Wed, 19 Aug 1998 15:14:58 +0000 (15:14 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 19 Aug 1998 15:14:58 +0000 (15:14 +0000)
commit898600d5fa876b04ef2e4de7d3f9f83fd85cf3aa
treea8e8e350b77e108b758cfb2cd7b897d48d0d05bd
parenta255ef043cf7c8f5e1174006b240e5d73b6242c9
cp-tree.h (ansi_null_node): New variable.

* cp-tree.h (ansi_null_node): New variable.
* decl.c (ansi_null_node): New variable.
(init_decl_processing): Initialize its type.
* lex.c (init_parse): Initialize its value.  Use ansi_null_node
for null_node in non-ANSI mode.
* typeck.c (build_binary_op_nodefault): Use ansi_null_node in
place of null_node to avoid spurious errors.

From-SVN: r21858
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/lex.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.other/null1.C [new file with mode: 0644]