PR c++/16338
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Aug 2004 01:58:52 +0000 (01:58 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Aug 2004 01:58:52 +0000 (01:58 +0000)
commit5575ae2daa739969ccf8ffb03d0f9ed48240c71a
tree0e2b7a7a4e1509e9c6c21c62383e3c5ac57705e8
parent37cae4bcc1481d61c309b4ad5eba9af5b73bdc8c
PR c++/16338
* cp-tree.h (DECL_INTEGRAL_CONSTANT_VAR_P): New macro.
* call.c (null_ptr_cst_p): Handle variables with constant
initializers.
* pt.c (convert_nontype_argument): Use
DECL_INTEGRAL_CONSTANT_VAR_P.
* semantics.c (finish_id_expression): Likewise.

PR c++~/16489
* decl.c (duplicate_decls): Reject duplicate namespace
declarations.

PR c++/16810
* typeck.c (build_ptrmemfunc): Loosen assertion.

PR c++/16338
* g++.dg/init/null1.C: New test.
* g++.dg/tc1/dr76.C: Adjust error marker.

PR c++/16489
* g++.dg/parse/namespace10.C: New test.

PR c++/16810
* g++.dg/inherit/ptrmem2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85421 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/ptrmem2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/null1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/namespace10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tc1/dr76.C